int (@Nullable PsiElement object) { if (object instanceof PsiNamedElement) { String name = ((PsiNamedElement)object).getName(); if (name != null) { return name.hashCode(); } } return Objects.hashCode(object); }