boolean (@NotNull RadComponent component) { while (component.getParent() != null) { if (!component.getParent().getLayoutManager().isSwitchedToChild(component.getParent(), component)) { return false; } component = component.getParent(); } return true; }