void (@NotNull TerminalContainer terminal) { if (myTerminal != null) { throw new IllegalStateException("Cannot set a new terminal when another terminal is still set"); } myTerminal = terminal; myTerminal.myWrapperPanel = this; setChildComponent(terminal.myTerminalWidget.getComponent()); }