void (@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, newWidget, container.getContent()); container.split(!vertically, newWidget); } }