void (@NotNull final RadContainer container) { container.setSelected(false); for (int i = 0; i < container.getComponentCount(); i++) { final RadComponent c = container.getComponent(i); if (c instanceof RadContainer) { clearSelection((RadContainer)c); } else { c.setSelected(false); } } }