void (DesignerEditorPanel designer, DefaultActionGroup group, EditableArea area) { List<RadComponent> selection = area.getSelection(); if (selection.isEmpty()) { return; } MetaModel model = null; for (RadComponent component : selection) { if (model == null) { model = component.getMetaModel(); } else if (model != component.getMetaModel()) { return; } } if (model == null) { return; } List<MetaModel> models = model.getMorphingModels(); if (models.isEmpty()) { return; } DefaultActionGroup morphingGroup = DefaultActionGroup.createPopupGroup(() -> DesignerBundle.message("action.morphing.text")); for (MetaModel morphingModel : models) { morphingGroup.add(new MorphingAction(designer, area, selection, morphingModel)); } group.add(morphingGroup); }