CompletionResultSet (@NotNull CompletionResultSet result, @NotNull String prefix) { PrefixMatcher prefixMatcher = createPrefixMatcher(prefix); if (prefixMatcher != null) { return result.withPrefixMatcher(prefixMatcher); } return result; }