void (PsiDocTag @NotNull [] tags, @NotNull PsiMethod psiMethod, @NotNull PsiElement toHighlight, @NotNull ProblemsHolder holder) { List<PsiNamedElement> absentParameters = null; for (PsiParameter param : psiMethod.getParameterList().getParameters()) { if (!hasTagForParameter(tags, param)) { (absentParameters = list(absentParameters)).add(param); } } if (absentParameters != null) { for (PsiNamedElement parameter : absentParameters) { String name = parameter.getName(); if (name != null) { String tagText = "<code>" + name + "</code>"; String message = JavaBundle.message("inspection.javadoc.method.problem.missing.param.tag", tagText); problem(holder, toHighlight, message, new JavaDocFixes.AddMissingParamTagFix(name)); } } } }