void (@NotNull AnActionEvent e) { final boolean enabled; final DomCollectionControl control = getDomCollectionControl(e); if (control != null) { final JTable table = control.getComponent().getTable(); enabled = table != null && table.getSelectedRowCount() > 0; } else { enabled = false; } e.getPresentation().setEnabled(enabled); }