void (@NotNull CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet result) { String prefix = getCompletionPrefix(parameters); if (!shouldProposeKeywordsAfterPrefix(prefix)) { return; } if (shouldProposeFirstLastKeywordsAfterPrefix(prefix)) { result.addElement(KEYWORD_VARIANT_FIRST); result.addElement(KEYWORD_VARIANT_LAST); } result.addElement(KEYWORD_VARIANT_BEFORE); result.addElement(KEYWORD_VARIANT_AFTER); }