boolean (PsiDocTag tag, String tagName, JavadocTagInfo tagInfo, ProblemsHolder holder) { StringTokenizer tokenizer = new StringTokenizer(ADDITIONAL_TAGS, ", "); while (tokenizer.hasMoreTokens()) { if (Comparing.strEqual(tagName, tokenizer.nextToken())) return true; } PsiElement nameElement = tag.getNameElement(); if (nameElement != null) { String key = tagInfo == null ? "inspection.javadoc.problem.wrong.tag" : "inspection.javadoc.problem.disallowed.tag"; LocalQuickFix fix = tagInfo == null ? new JavaDocFixes.AddUnknownTagToCustoms(this, tagName) : new JavaDocFixes.RemoveTagFix(tagName); final LocalQuickFix[] fixes; if (tagInfo != null) { fixes = new LocalQuickFix[]{ fix }; } else { final String nameElementText = nameElement.getText(); fixes = new LocalQuickFix[]{ fix, new JavaDocFixes.EncloseWithCodeFix(nameElementText), new JavaDocFixes.EscapeAtQuickFix(nameElementText) }; } holder.registerProblem(nameElement, JavaBundle.message(key, "<code>" + tagName + "</code>"), fixes); } return false; }