List<TerminalAction> () { List<TerminalAction> actions = new ArrayList<>(super.getActions()); if (TerminalToolWindowManager.isInTerminalToolWindow(this)) { ContainerUtil.addIfNotNull(actions, TerminalActionUtil.createTerminalAction(this, RenameTerminalSessionActionKt.ACTION_ID, true)); } JBTerminalWidgetListener listener = getListener(); JBTerminalSystemSettingsProvider settingsProvider = getSettingsProvider(); actions.add(TerminalActionUtil.createTerminalAction(this, settingsProvider.getNewTabActionPresentation(), l -> { l.onNewSession(); return true; }).withMnemonicKey(KeyEvent.VK_T)); actions.add(TerminalActionUtil.createTerminalAction(this, settingsProvider.getCloseTabActionPresentation(), l -> { l.onSessionClosed(); return true; }).withMnemonicKey(KeyEvent.VK_T)); actions.add(TerminalSplitAction.create(true, getListener()).separatorBefore(true)); actions.add(TerminalSplitAction.create(false, getListener())); if (listener != null && listener.isGotoNextSplitTerminalAvailable()) { actions.add(settingsProvider.getGotoNextSplitTerminalAction(listener, true)); actions.add(settingsProvider.getGotoNextSplitTerminalAction(listener, false)); } actions.add(TerminalActionUtil.createTerminalAction(this, settingsProvider.getPreviousTabActionPresentation(), l -> { l.onPreviousTabSelected(); return true; }).withMnemonicKey(KeyEvent.VK_T)); actions.add(TerminalActionUtil.createTerminalAction(this, settingsProvider.getNextTabActionPresentation(), l -> { l.onNextTabSelected(); return true; }).withMnemonicKey(KeyEvent.VK_T)); actions.add(TerminalActionUtil.createTerminalAction(this, settingsProvider.getMoveTabRightActionPresentation(), l -> { l.moveTabRight(); return true; }).withMnemonicKey(KeyEvent.VK_R).withEnabledSupplier(() -> listener != null && listener.canMoveTabRight())); actions.add(TerminalActionUtil.createTerminalAction(this, settingsProvider.getMoveTabLeftActionPresentation(), l -> { l.moveTabLeft(); return true; }).withMnemonicKey(KeyEvent.VK_L).withEnabledSupplier(() -> listener != null && listener.canMoveTabLeft())); actions.add(TerminalActionUtil.createTerminalAction(this, settingsProvider.getShowTabsActionPresentation(), l -> { l.showTabs(); return true; }).withMnemonicKey(KeyEvent.VK_T)); return actions; }