void (@NotNull AnActionEvent e) { final DomCollectionControl control = getDomCollectionControl(e); final boolean visible = control != null && control.isEditable(); e.getPresentation().setVisible(visible); e.getPresentation().setEnabled(visible && control.getComponent().getTable().getSelectedRowCount() == 1); }