void (PsiType parameterType) { //type parameters if (mySetter.hasTypeParameters()) { GenerationUtil.writeTypeParameters(myBuffer, mySetter, myClassNameProvider); } if (parameterType instanceof PsiPrimitiveType) { myBuffer.append(parameterType.getCanonicalText()).append(' '); } else { if (mySetter.hasTypeParameters()) { myBuffer.delete(myBuffer.length() - 1, myBuffer.length()); //builder.removeFromTheEnd(1); myBuffer.append(", "); } else { myBuffer.append('<'); } myBuffer.append("Value"); if (!parameterType.equalsToText(CommonClassNames.JAVA_LANG_OBJECT)) { myBuffer.append(" extends "); TypeWriter.writeType(myBuffer, parameterType, myClass, myClassNameProvider); } myBuffer.append('>'); myBuffer.append("Value "); } }