void (StringBuilder buffer, PsiMethod method, PsiDocComment comment) { PsiParameter[] params = method.getParameterList().getParameters(); PsiDocTag[] localTags = comment != null ? comment.findTagsByName("param") : PsiDocTag.EMPTY_ARRAY; List<ParamInfo> collectedTags = new ArrayList<>(); for (int i = 0; i < params.length; i++) { PsiParameter param = params[i]; String presentableName = generateOneParameterPresentableName(param); DocTagLocator<PsiDocTag> tagLocator = parameterLocator(i); ParamInfo parmTag = findDocTag(localTags, param.getName(), presentableName, method, tagLocator); if (parmTag != null) { collectedTags.add(parmTag); } } generateParametersSection(buffer, CodeInsightBundle.message("javadoc.parameters"), collectedTags); }