docs: protected int maxDepth(Layout.Node node) {
      int depth = 0;
      for(int i = 0; i < node.numChildren(); i++) {
        depth = Math.max(depth, maxDepth(node.getChild(i)));
      }
      return depth + 1;
    }