public static void installActions(@NotNull JList list,
                                    @NotNull JTextField focusParent,
                                    @NotNull Runnable handleFocusParent,
                                    boolean isCycleScrolling) {
    ActionMap actionMap = list.getActionMap();
    actionMap.put(ListActions.Up.ID, new MoveAction(ListActions.Up.ID, list, handleFocusParent, isCycleScrolling));
    actionMap.put(ListActions.Down.ID, new MoveAction(ListActions.Down.ID, list, handleFocusParent, isCycleScrolling));

    maybeInstallDefaultShortcuts(list);

    installMoveUpAction(list, focusParent, handleFocusParent, isCycleScrolling);
    installMoveDownAction(list, focusParent, handleFocusParent, isCycleScrolling);
  }
public static void installActions(@NotNull JList list,
                                    @NotNull JTextField focusParent,
                                    @NotNull Runnable handleFocusParent,
                                    boolean isCycleScrolling)