private void saveSelectionState(int[] selectedRows) {
		traceRows("saveSelectionState(): ", selectedRows);
		trace("\tfrom", new Throwable());

		modelAdapter.clearLastSelectedObjects();

		if (modelAdapter.getUnfilteredRowCount() == 0) {
			// we can sometimes be called from a programmatic selection being made when there is
			// not data in the table
			return;
		}

		trace("\tstoring data");
		List<T> lastSelectedObjects = translateRowsToValues(selectedRows);
		modelAdapter.setLastSelectedObjects(lastSelectedObjects);
		trace("\tfinal stored data: " + toString(lastSelectedObjects));
	}
checks to see if we are ignoring selection changes AND will reset the ignore state
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/RowObjectSelectionManager.java