@Override
	public void writeConfigState(SaveState saveState) {
		String[] values = new String[checkBoxInfos.size()];
		int i = 0;
		for (CheckBoxInfo<T> info : checkBoxInfos) {
			JCheckBox checkBox = info.getCheckBox();
			String text = checkBox.getText();
			values[i++] = text + ":" + Boolean.toString(checkBox.isSelected());
		}

		String key = getStateKey();
		saveState.putStrings(key, values);
	}
A basic class to extract out code I was repeating over and over again.  This class creates
a component that contains series of check boxes and can answer questions about filtering.

@param <T> the type of item being filtered
Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/filters/CheckBoxBasedAncillaryFilter.java