String (@NotNull PsiMember member) { if (member instanceof PsiMethod method){ @NonNls StringBuilder buffer = new StringBuilder(); buffer.append("method#"); buffer.append(method.getName()); for (PsiParameter param : method.getParameterList().getParameters()) { buffer.append("#"); buffer.append(param.getType().getPresentableText()); } return buffer.toString(); } if (member instanceof PsiField){ return "field#" + member.getName(); } if (member instanceof PsiRecordComponent) { return "record#" + member.getName(); } return CLASS_PREFIX + ((PsiClass)member).getQualifiedName(); }