public void togglePrimaryHighlights(Color hlColor, Supplier<List<ClangToken>> tokens) {
		boolean isAllHighlighted = true;
		for (ClangToken token : tokens.get()) {
			if (!hasContextHighlight(token)) {
				isAllHighlighted = false;
				break;
			}
		}

		// this is a bit odd, but whenever we change the primary highlights, we always reset any
		// previous primary highlight (see javadoc header)
		clearPrimaryHighlights();

		if (isAllHighlighted) {
			return; // nothing to do; we toggled from 'all on' to 'all off'
		}

		addPrimaryHighlights(tokens, hlColor);
	}
Toggles the primary highlight state of the given set of tokens.  If the given tokens do not
all have the same highlight state (highlights on or off), then the highlights will be
cleared.  If all tokens are not highlighted, then they will all become highlighted.

@param hlColor the highlight color
@param tokens the tokens
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/ClangHighlightController.java