public static @NotNull TreeState createOn(@NotNull JTree tree, boolean persistExpand, boolean persistSelect) {
    return createOn(tree, persistExpand, persistSelect, false);
  }
public static @NotNull TreeState createOn(@NotNull JTree tree, boolean persistExpand, boolean persistSelect)