docs: public void applyToAncestorsUpTo( Type stopType,
                                        Operation operation ) {
          PlanNode ancestor = getParent();
          while (ancestor != null) {
              if (ancestor.getType() == stopType) return;
              operation.apply(ancestor);
              ancestor = ancestor.getParent();
          }
      }