boolean (final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final PsiTreeElementBase that = (PsiTreeElementBase)o; T value = getValue(); return value == null ? that.getValue() == null : value.equals(that.getValue()); }