@Override
	public FilterShortcutState getFilterShortcutState() {
		int onCount = 0;
		for (CheckBoxInfo<T> info : checkBoxInfos) {
			if (info.isSelected()) {
				onCount++;
			}
		}

		if (onCount == 0) {
			return FilterShortcutState.NEVER_PASSES;
		}

		if (onCount == checkBoxInfos.size()) {
			return FilterShortcutState.ALWAYS_PASSES;
		}

		return FilterShortcutState.REQUIRES_CHECK;
	}
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