void (@NotNull final CompletionParameters parameters, @NotNull final ProcessingContext context, @NotNull final CompletionResultSet result) { final PsiElement position = parameters.getPosition(); final boolean isInline = position.getContext() instanceof PsiInlineDocTag; final List<String> ret = getTags(position, isInline); for (final String s : ret) { if (isInline) { result.addElement(LookupElementDecorator.withInsertHandler(LookupElementBuilder.create(s), new InlineInsertHandler())); } else { result.addElement(TailTypeDecorator.withTail(LookupElementBuilder.create(s), TailTypes.insertSpaceType())); } } result.stopHere(); // no word completions at this point }