CompletionResultSet (@NotNull CompletionResultSet result, @NotNull CompletionParameters parameters) { // We want live templates to be mixed with tags and other contributions result = result.withRelevanceSorter(withoutLiveTemplatesWeigher(null, parameters, result.getPrefixMatcher())); if (parameters.getInvocationCount() == 0) { // We only want results which start with the prefix first char result = result.withPrefixMatcher(new StartOnlyMatcher(result.getPrefixMatcher())); } return result; }