String (PsiMember member) { if (member instanceof PsiMethod) { return member.getName() + "(" + ((PsiMethod)member).getParameterList().getParametersCount() + ")"; } else if (member instanceof PsiField || member instanceof PsiClass) { return member.getName(); } fail("Unexpected member = " + member + " type = " + member.getClass()); return null; }