void (StringBuilder text, PsiMethod method) { final PsiReferenceList throwsList = method.getThrowsList(); final PsiClassType[] exceptions = throwsList.getReferencedTypes(); GenerationUtil.writeThrowsList(text, throwsList, exceptions, classNameProvider); }