public static void sort(final @NotNull DefaultTreeModel model, @Nullable Comparator comparator) {
    sort((DefaultMutableTreeNode) model.getRoot(), comparator);
  }
public static void sort(final @NotNull DefaultTreeModel model, @Nullable Comparator comparator)