void (@NotNull AnActionEvent e) { ArrangementMatchingRulesControl control = getRulesControl(e); e.getPresentation().setEnabled(control != null && !control.getSelectedModelRows().isEmpty() && control.getEditingRow() == -1); }