@Override
	public FilterState getFilterState() {
		FilterState state = new FilterState(this);
		for (CheckBoxInfo<T> info : checkBoxInfos) {
			JCheckBox checkBox = info.getCheckBox();
			state.put(checkBox.getText(), checkBox.isSelected());
		}
		return state;
	}
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