public static void moveEnd(@NotNull JTable table) {
    int index = table.getModel().getRowCount() - 1;
    table.getSelectionModel().setSelectionInterval(index, index);
    ensureIndexIsVisible(table, index, 0);
  }
public static void moveEnd(@NotNull JTable table)