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