boolean (@NotNull DataContext dataContext) { if (myDesigner.getInplaceEditingLayer().isEditing()) { return false; } List<RadComponent> selection = getArea(dataContext).getSelection(); if (selection.isEmpty()) { return false; } for (RadComponent component : selection) { if (!component.canDelete()) { return false; } } return true; }