void (@NotNull AnActionEvent e) { ArrangementMatchingRulesControl control = getRulesControl(e); if (control == null) { return; } control.hideEditor(); final IntList rowsToRemove = control.getSelectedModelRows(); if (rowsToRemove.isEmpty()) { return; } final ArrangementMatchingRulesModel model = control.getModel(); control.runOperationIgnoreSelectionChange(() -> { for (int i = 0; i < rowsToRemove.size(); i++) { int row = rowsToRemove.getInt(i); model.removeRow(row); } }); }