docs: public PlanNode findAncestor( Set<Type> typesToFind ) {
          PlanNode node = this;
          PlanNode parent = null;
          while ((parent = node.getParent()) != null) {
              if (typesToFind.contains(parent.getType())) return parent;
              node = parent;
          }
          return null;
      }