private void transferChildFrom(@NotNull TerminalWrapperPanel other) {
      Object childObj = other.validateAndGetChild();
      if (childObj instanceof TerminalContainer otherTerminal) {
        setChildTerminal(otherTerminal);
      }
      else {
        setChildSplitter((Splitter)childObj);
      }
    }
private void transferChildFrom(@NotNull TerminalWrapperPanel other)