public void save() {
		SaveState saveState = new SaveState("COlUMN_FILTERS");
		saveState.putInt("NUM_FILTERS", filters.size());
		for (int i = 0; i < filters.size(); i++) {
			saveState.putXmlElement("FILTER_STATE_" + i, filters.get(i).save().saveToXml());
		}
		PreferenceState preferenceState = new PreferenceState();
		preferenceState.putXmlElement(COLUMN_FILTER_STATE, saveState.saveToXml());
		if (dockingWindowManager == null) {
			return; // can happen in partial environments, like testing
		}

		dockingWindowManager.putPreferenceState(preferenceKey, preferenceState);
	}
Saves the list of filters to the tool's preference state.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/columnfilter/ColumnFilterSaveManager.java