ArrayList<RadComponent> (@NotNull final GuiEditor editor) { final ArrayList<RadComponent> result = new ArrayList<>(); iterate( editor.getRootContainer(), new ComponentVisitor<RadComponent>() { @Override public boolean visit(final RadComponent component) { if (component.isSelected()) { result.add(component); } return true; } } ); return result; }