void (@NotNull AnActionEvent e) { ArrangementGroupingRulesControl control = e.getData(ArrangementGroupingRulesControl.KEY); if (control == null) { return; } int[] rows = control.getSelectedRows(); int row = rows[0]; if (rows.length != 1 || row == 0) { return; } if (control.isEditing()) { control.getCellEditor().stopCellEditing(); } DefaultTableModel model = control.getModel(); Object value = model.getValueAt(row, 0); model.removeRow(row); model.insertRow(row - 1, new Object[] { value }); control.getSelectionModel().setSelectionInterval(row - 1, row - 1); }