void (StringBuilder result, PsiMethod canonicalConstructor, PsiClass psiClass) { if (canonicalConstructor instanceof SyntheticElement) { PsiDocComment docComment = psiClass.getDocComment(); if (docComment != null) { PsiDocTag[] params = docComment.findTagsByName("param"); PsiDocComment ctorComment = JavaPsiFacade.getElementFactory(psiClass.getProject()).createDocCommentFromText("/**\n*/"); for (PsiDocTag param : params) { ctorComment.add(param); } result.append(ctorComment.getText()); } result.append(canonicalConstructor.getText()); } }