private static boolean isHiddenRoot(@NotNull JTree tree, @NotNull TreePath path) {
    return !tree.isRootVisible() && path.getParentPath() == null;
  }
private static boolean isHiddenRoot(@NotNull JTree tree, @NotNull TreePath path)