public void split(boolean vertically, @NotNull TerminalWidget newTerminalWidget) {
    boolean hasFocus = myTerminalWidget.hasFocus();
    TerminalWrapperPanel newParent = getWrapperPanel();
    myWrapperPanel = new TerminalWrapperPanel(this);
    TerminalContainer newContainer = new TerminalContainer(myProject, myContent, newTerminalWidget, myTerminalToolWindowManager);
    Splitter splitter = createSplitter(vertically, myWrapperPanel, newContainer.getWrapperPanel());
    newParent.setChildSplitter(splitter);
    if (hasFocus) {
      myTerminalWidget.requestFocus();
    }
  }
public void split(boolean vertically, @NotNull TerminalWidget newTerminalWidget)