code: public boolean isSameNode(Node other) {
          return (other instanceof NodeImpl)
              && (((NodeImpl) other).tree == tree)
              && (((NodeImpl) other).node == node);
      }
docs: {@inheritDoc}