public static TerminalSplitAction create(boolean vertically, @Nullable JBTerminalWidgetListener listener) {
    String text = vertically ? UIUtil.removeMnemonic(ActionsBundle.message("action.SplitVertically.text"))
                             : UIUtil.removeMnemonic(ActionsBundle.message("action.SplitHorizontally.text"));
    return new TerminalSplitAction(new TerminalActionPresentation(text, Collections.emptyList()), vertically) {
      @Override
      public boolean isEnabled(@Nullable KeyEvent e) {
        return listener != null && listener.canSplit(vertically);
      }

      @Override
      public void split(boolean vertically) {
        Objects.requireNonNull(listener).split(vertically);
      }
    };
  }
public static TerminalSplitAction create(boolean vertically, @Nullable JBTerminalWidgetListener listener)