private static void selectLast(@NotNull MoveType type, @NotNull JTree tree) {
    select(type, tree, tree.getRowCount() - 1);
  }
private static void selectLast(@NotNull MoveType type, @NotNull JTree tree)