List<LookupElement> (Iterable<? extends LookupElement> source, ProcessingContext context) { List<LookupElement> initialList = new ArrayList<>(); for (LookupElement next : myNext.classify(source, context)) { if (myNoStats.contains(next)) { initialList.add(next); } else { break; } } return initialList; }