private void highlightMatchingToken(ClangToken tok, TokenBin tokenBin) {
		// Undo any highlight of the previous matching tokenBin.
		if (matchingTokenBin != null && matchingTokenBin.getMatch() != null) {
			clearTokenBinHighlight(matchingTokenBin.getMatch());
		}

		// Highlight the new matching tokenBin.
		if (tokenBin != null && tokenBin.getMatch() != null) {
			addTokenBinHighlight(tokenBin.getMatch(),
				comparisonOptions.getFocusedTokenMatchHighlightColor());
		}

		matchingTokenBin = tokenBin;
	}
Class to handle Function Difference highlights for a decompiled function.
Ghidra/Features/CodeCompare/src/main/java/ghidra/features/codecompare/decompile/DiffClangHighlightController.java