public static void collapseAll(@NotNull JTree tree, final int keepSelectionLevel) {
    collapseAll(tree, false, keepSelectionLevel);
  }
public static void collapseAll(@NotNull JTree tree, final int keepSelectionLevel)