code: public boolean parent() {
          if (mNode == null) {
              return false;
          }
          AccessibilityNodeInfoCompat parentNode = mNode.getParent();
          while (parentNode != null) {
              if (AccessibilityNodeInfoUtils.isVisibleOrLegacy(parentNode)) {
                  reset(parentNode);
                  return true;
              }
              AccessibilityNodeInfoCompat tmp = parentNode.getParent();
              parentNode.recycle();
              parentNode = tmp;
          }
          return false;
      }
docs: Traverses to the parent of this node, returning {@code true} on
  success. On failure, returns {@code false} and does not move.