int (PsiMember member) { int code = 0; final PsiClass clazz = member.getContainingClass(); if (clazz != null) { String name = clazz.getName(); if (name != null) { code += name.hashCode(); } else { //anonymous classes are not equivalent code += clazz.hashCode(); } } if (member instanceof PsiMethod) { code += 37 * ((PsiMethod)member).getParameterList().getParametersCount(); } return code; }