void (DesignerEditorPanel designer, DefaultActionGroup group, EditableArea area) { List<RadComponent> selection = area.getSelection(); if (selection.isEmpty()) { return; } Set<RadComponent> parents = RadComponent.getParents(selection); if (parents.size() != 1) { return; } RadComponent parent = parents.iterator().next(); if (selection.size() > 1) { RadLayout layout = parent.getLayout(); if (layout != null && !layout.isWrapIn(selection)) { return; } } WrapInProvider provider = designer.getWrapInProvider(); if (provider == null) { return; } List<MetaModel> models = provider.getModels(); if (models.isEmpty()) { return; } DefaultActionGroup wrapGroup = DefaultActionGroup.createPopupGroup(() -> DesignerBundle.message("action.wrap.in.text")); for (MetaModel wrapModel : models) { wrapGroup.add(new WrapInAction(designer, area, provider, parent, selection, wrapModel)); } //group.add(wrapGroup); // XXX }