void (StringBuilder buffer) { buffer.append("("); int count = 0; final String indent = " "; for (int i = 0; i < myInputVariables.length; i++) { VariableData data = myInputVariables[i]; if (data.passAsParameter) { PsiType type = data.type; if (i == myInputVariables.length - 1 && type instanceof PsiArrayType && ((myCreateInnerClassRb.isSelected() && myCbMakeVarargs.isSelected()) || (myCreateAnonymousClassWrapperRb.isSelected() && myCbMakeVarargsAnonymous.isSelected()))) { type = new PsiEllipsisType(((PsiArrayType)type).getComponentType()); } String typeText = type.getPresentableText(); if (count > 0) { buffer.append(", "); } buffer.append("\n"); buffer.append(indent); buffer.append(typeText); buffer.append(" "); buffer.append(data.name); count++; } } buffer.append(")"); if (myExceptions.length > 0) { buffer.append("\n"); buffer.append("throws\n"); for (PsiType exception : myExceptions) { buffer.append(INDENT); buffer.append(PsiFormatUtil.formatType(exception, 0, PsiSubstitutor.EMPTY)); buffer.append("\n"); } } buffer.append("{}"); }