public static void installActions(final @NotNull JList<?> list, @Nullable JComponent focusParent, boolean cycleScrolling) {
    ActionMap actionMap = list.getActionMap();
    setupScrollingActions(list, actionMap, cycleScrolling);
    actionMap.put(MOVE_HOME_ID, new MoveAction(MOVE_HOME_ID, list));
    actionMap.put(MOVE_END_ID, new MoveAction(MOVE_END_ID, list));

    maybeInstallDefaultShortcuts(list);

    installMoveUpAction(list, focusParent, cycleScrolling);
    installMoveDownAction(list, focusParent, cycleScrolling);
    installMovePageUpAction(list, focusParent);
    installMovePageDownAction(list, focusParent);
    if (!(focusParent instanceof JTextComponent)) {
      installMoveHomeAction(list, focusParent);
      installMoveEndAction(list, focusParent);
    }
  }
public static void installActions(final @NotNull JList<?> list, @Nullable JComponent focusParent, boolean cycleScrolling)