void (CompletionResultSet result, Collection<LookupElement> collection, CompletionParameters parameters) { result.withPrefixMatcher(findPrefixStatic(parameters)).addAllElements(ContainerUtil.map(collection, e -> PrioritizedLookupElement.withPriority(e, e instanceof VariableLookup ? 2 : 1))); }