void (@NotNull CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet result) { List<LookupElement> commands = ContainerUtil.append(ContainerUtil.map( CommandProvider.getAllCommandNames(), LookupElementBuilder::create ), LookupElementBuilder.create("%%project"), LookupElementBuilder.create("%%profileIndexing")); String prefix = CompletionUtil.findIdentifierPrefix(parameters.getPosition(), parameters.getOffset(), StandardPatterns.character(), StandardPatterns.character()); result.withPrefixMatcher(prefix).addAllElements(commands); }