public static @NotNull JBTreeTraverser<Object> treeTraverser(@NotNull JTree tree) {
    TreeModel model = tree.getModel();
    Object root = model.getRoot();
    return JBTreeTraverser.from(node -> nodeChildren(node, model)).withRoot(root);
  }
public static @NotNull JBTreeTraverser<Object> treeTraverser(@NotNull JTree tree)