public static void moveEnd(@NotNull JList<?> list) {
    int index = list.getModel().getSize() - 1;
    list.setSelectedIndex(index);
    list.ensureIndexIsVisible(index);
  }
public static void moveEnd(@NotNull JList<?> list)