static LPair phraseCache_findAllPhrases(PhraseCache cache, LS tok) { LPair out = new L; if (cache != null) for (int i = 1; i < l(tok); i += 2) { L phrases = cache.byFirstWord.get(tok.get(i)); for (LS phrase : phrases) if (codeTokenSubListEqualsIC_skipFirst(tok, phrase, i)) out.add(pair(i, phrase)); } ret out; }