ShortcutSet (@NotNull Buttons button) { return switch (button) { case ADD -> CommonShortcuts.getNewForDialogs(); case EDIT -> CustomShortcutSet.fromString("ENTER"); case REMOVE -> CustomShortcutSet.fromString(SystemInfo.isMac ? "meta BACK_SPACE" : "alt DELETE"); case UP -> CommonShortcuts.MOVE_UP; case DOWN -> CommonShortcuts.MOVE_DOWN; }; }