void (@NotNull final RadComponent component) { if (!myComponents.contains(component)) { throw new IllegalArgumentException("component is not added: " + component); } final RadComponent[] oldChildren = myComponents.toArray(RadComponent.EMPTY_ARRAY); // Remove child component.setParent(null); myComponents.remove(component); myLayoutManager.removeComponentFromContainer(this, component); final RadComponent[] newChildren = myComponents.toArray(RadComponent.EMPTY_ARRAY); firePropertyChanged(PROP_CHILDREN, oldChildren, newChildren); }