String (@NotNull MethodCandidateInfo methodCandidate) { PsiMethod method = methodCandidate.getElement(); PsiParameter[] parameters = method.getParameterList().getParameters(); PsiSubstitutor substitutor = methodCandidate.getSubstitutor(); StringBuilder ms = new StringBuilder("<td><b>" + method.getName() + "</b></td>"); for (int j = 0; j < parameters.length; j++) { PsiParameter parameter = parameters[j]; PsiType type = substitutor.substitute(parameter.getType()); ms.append("<td><b>").append(j == 0 ? "(" : "").append(XmlStringUtil.escapeString(type.getPresentableText())) .append(j == parameters.length - 1 ? ")" : ",").append("</b></td>"); } if (parameters.length == 0) { ms.append("<td><b>()</b></td>"); } return ms.toString(); }