void (FilterAction filter) { final int index = myTableModel.indexOf(filter); if (index >= 0) myTableModel.removeRow(index); if (myTableModel.getRowCount() == 1) myTableModel.removeRow(0); // remove header filter.clearFilter(); filter.reset(); myConstraintChangedCallback.run(); }