boolean (final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final PsiElementResolveResult that = (PsiElementResolveResult)o; if (!myElement.equals(that.myElement)) return false; return true; }