private static CheckedTreeNode findChild(TreeNode node, String name) {
    Ref<CheckedTreeNode> found = new Ref<>();
    visitChildren(node, new CheckedNodeVisitor() {
      @Override
      public void visit(CheckedTreeNode node) {
        String text = getNodeText(node, true);
        if (name.equals(text)) {
          found.set(node);
        }
      }
    });
    return found.get();
  }
private static CheckedTreeNode findChild(TreeNode node, String name)