void (StringBuilder buffer, PsiParameter parameter, boolean generatePrologue) { if (generatePrologue) generatePrologue(buffer); generateVariableDefinition(buffer, parameter, true); PsiElement method = PsiTreeUtil.getParentOfType(parameter, PsiMethod.class, PsiLambdaExpression.class); if (method instanceof PsiMethod psiMethod) { PsiParameterList parameterList = psiMethod.getParameterList(); if (parameter.getParent() == parameterList) { // this can also be a parameter in foreach statement or in catch clause ParamInfo tagInfoProvider = findTagInfoProvider(parameter, psiMethod, parameterList); if (tagInfoProvider != null) { buffer.append(DocumentationMarkup.CONTENT_START); buffer.append(generateOneParameter(tagInfoProvider)); buffer.append(DocumentationMarkup.CONTENT_END); } } } }