List<String> (PsiElement position, boolean isInline) { final PsiDocComment comment = PsiTreeUtil.getParentOfType(position, PsiDocComment.class); assert comment != null; JavadocTagInfo[] infos = getTagInfos(position, comment); final List<String> ret = new ArrayList<>(); for (JavadocTagInfo info : infos) { String tagName = info.getName(); if (tagName.equals(SuppressionUtilCore.SUPPRESS_INSPECTIONS_TAG_NAME)) continue; if (isInline != info.isInline() && !(PsiUtil.isLanguageLevel16OrHigher(comment) && tagName.equals("return"))) continue; if (addSpecialTags(ret, comment, tagName)) { ret.add(tagName); } } InspectionProfile inspectionProfile = InspectionProjectProfileManager.getInstance(position.getProject()).getCurrentProfile(); JavadocDeclarationInspection inspection = (JavadocDeclarationInspection)inspectionProfile.getUnwrappedTool(JavadocDeclarationInspection.SHORT_NAME, position); if (inspection != null) { final StringTokenizer tokenizer = new StringTokenizer(inspection.ADDITIONAL_TAGS, ", "); while (tokenizer.hasMoreTokens()) { ret.add(tokenizer.nextToken()); } } return ret; }