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