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