void (@NotNull AnActionEvent e) { myDesigner.getToolProvider().execute(() -> { List<RadComponent> newComponents = new ArrayList<>(); for (RadComponent component : myComponents) { RadComponent newComponent = component.morphingTo(myTarget); if (newComponent != null) { newComponents.add(newComponent); } } myArea.setSelection(newComponents); }, DesignerBundle.message("run.morphing.action"), true); }