@Override
    protected void addCompletions(final @NotNull CompletionParameters parameters, final @NotNull ProcessingContext context, final @NotNull 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
    }
@Override
    protected void addCompletions(final @NotNull CompletionParameters parameters, final @NotNull ProcessingContext context, final @NotNull CompletionResultSet result)