public static <T> boolean canMoveSelectedItemsDown(@NotNull JList<T> list) {
    ListModel model = list.getModel();
    int[] indices = list.getSelectedIndices();
    return indices.length > 0 && indices[indices.length - 1] < model.getSize() - 1;
  }
public static <T> boolean canMoveSelectedItemsDown(@NotNull JList<T> list)