boolean (final GuiEditor editor, @NotNull final RadComponent component) { boolean hasTab = false; RadComponent parent = component; while (parent.getParent() != null) { if (parent.getParent().getLayoutManager().switchContainerToChild(parent.getParent(), parent)) { hasTab = true; } parent = parent.getParent(); } component.setSelected(true); editor.setSelectionLead(component); return hasTab; }