public static @NotNull Comparator<TreePath> getDisplayOrderComparator(final @NotNull JTree tree) {
    return Comparator.comparingInt(tree::getRowForPath);
  }
public static @NotNull Comparator<TreePath> getDisplayOrderComparator(final @NotNull JTree tree)