@Deprecated(forRemoval = true)
  public static @NotNull TreePath getFirstLeafNodePath(@NotNull JTree tree) {
    final TreeModel model = tree.getModel();
    Object root = model.getRoot();
    TreePath selectionPath = new CachingTreePath(root);
    while (model.getChildCount(root) > 0) {
      final Object child = model.getChild(root, 0);
      selectionPath = selectionPath.pathByAddingChild(child);
      root = child;
    }
    return selectionPath;
  }
@Deprecated(forRemoval = true)
  public static @NotNull TreePath getFirstLeafNodePath(@NotNull JTree tree)