String (MethodSignature signature) { StringBuilder builder = new StringBuilder(); builder.append(signature.getName()).append('('); PsiType[] types = signature.getParameterTypes(); for (PsiType type : types) { builder.append(type.getPresentableText()).append(", "); } if (types.length > 0) builder.delete(builder.length() - 2, builder.length()); builder.append(")"); return builder.toString(); }