void (int indentLevel, @NotNull StringBuilder buffer) { appendText(getDocComment(), indentLevel, buffer, NEXT_LINE); appendText(getModifierList(), indentLevel, buffer, ""); appendText(getTypeParameterList(), indentLevel, buffer, " "); if (!isConstructor()) { appendText(getReturnTypeElement(), indentLevel, buffer, " "); } appendText(getNameIdentifier(), indentLevel, buffer, ""); appendText(getParameterList(), indentLevel, buffer); PsiReferenceList throwsList = getThrowsList(); if (throwsList.getReferencedTypes().length > 0) { buffer.append(' '); appendText(throwsList, indentLevel, buffer); } PsiAnnotationMemberValue defaultValue = getDefaultValue(); if (defaultValue != null) { buffer.append(" default "); appendText(defaultValue, indentLevel, buffer); } if (hasModifierProperty(PsiModifier.ABSTRACT) || hasModifierProperty(PsiModifier.NATIVE)) { buffer.append(";"); } else { buffer.append(" { /* compiled code */ }"); } }