public void split(@NotNull TerminalWidget widget, boolean vertically) {
    TerminalContainer container = getContainer(widget);
    if (container != null) {
      String workingDirectory = TerminalWorkingDirectoryManager.getWorkingDirectory(widget);
      ShellStartupOptions startupOptions = ShellStartupOptionsKt.shellStartupOptions(workingDirectory);
      TerminalWidget newWidget = myTerminalRunner.startShellTerminalWidget(container.getContent(), startupOptions, true);
      setupTerminalWidget(myToolWindow, myTerminalRunner, newWidget, container.getContent());
      container.split(!vertically, newWidget);
    }
  }
public void split(@NotNull TerminalWidget widget, boolean vertically)