void (@NotNull CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet result) { int offset = parameters.getOffset(); final String prefix = getPrefix(offset, parameters.getOriginalFile()); if (prefix.length() > 0) { result = result.withPrefixMatcher(prefix); } for (String tag : RestUtil.getDirectives()) { result.addElement(LookupElementBuilder.create(tag)); } }