void (PsiDocTag @NotNull [] tags, @NotNull PsiMethod psiMethod, @NotNull PsiElement toHighlight, @NotNull ProblemsHolder holder) { if (!psiMethod.isConstructor() && !PsiTypes.voidType().equals(psiMethod.getReturnType())) { boolean hasReturnTag = ContainerUtil.exists(tags, tag -> "return".equals(tag.getName())); if (!hasReturnTag) { String message = JavaBundle.message("inspection.javadoc.problem.missing.tag", "<code>@" + "return" + "</code>"); problem(holder, toHighlight, message, new JavaDocFixes.AddMissingTagFix("return", "")); } } }