void (final @NotNull DataContext dataContext) { myDesigner.getToolProvider().execute(() -> { EditableArea area = getArea(dataContext); List<RadComponent> selection = area.getSelection(); if (selection.isEmpty()) { return; } myDesigner.getToolProvider().loadDefaultTool(); List<RadComponent> components = RadComponent.getPureSelection(selection); updateSelectionBeforeDelete(area, components.get(0), selection); handleDeletion(components); }, DesignerBundle.message("command.delete.selection"), true); }