GroovyCompletionConsumer (@NotNull Function<? super CompletionResultSet, ? extends CompletionResultSet> transformer) { return new AccumulatingGroovyCompletionConsumer(transformer.apply(getCompletionResultSet()), myAccumulator); }