RadComponent (@NotNull final GuiEditor editor) { final Ref<RadComponent> result = new Ref<>(); iterate( editor.getRootContainer(), new ComponentVisitor<RadComponent>() { @Override public boolean visit(final RadComponent component) { if (component.hasDragger()) { result.set(component); return false; } return true; } } ); return result.get(); }