Condition<String> (@NotNull Object[] variants) { if (variants.length == 0) return null; final Set<String> seenNames = StreamEx.of(variants).select(LookupElement.class).map(LookupElement::getLookupString).toSet(); return s -> !seenNames.contains(s); }