TerminalAction (@Nullable JBTerminalWidgetListener listener, boolean forward) { String actionId = forward ? "Terminal.NextSplitter" : "Terminal.PrevSplitter"; String text = UIUtil.removeMnemonic(getGotoNextSplitTerminalActionText(forward)); return new TerminalAction(new TerminalActionPresentation(text, getKeyStrokesByActionId(actionId)), event -> { if (listener != null) { listener.gotoNextSplitTerminal(forward); } return true; }); }