public Item toItem(String label) {
        if (matches.size() == 0) return null;
        if (matches.size() == 1) return matches.get(0).toItem(label);

        PhraseItem phrase = new PhraseItem(); // TODO: Somehow allow AND items instead here
        phrase.setIndexName(label);
        for (Iterator<Match> i = matches.iterator(); i.hasNext(); ) {
            phrase.addItem(i.next().toItem(label));
        }
        return phrase;
    }
Returns the item to insert from these referenced matches, or null if none

@param label the label of the matches
container-search/src/main/java/com/yahoo/prelude/semantics/engine/ReferencedMatches.java