@Override
	public Color getColor(ClangToken token) {

		Varnode vn = DecompilerUtils.getVarnodeRef(token);
		if (vn == null) {
			return null;
		}

		Color c = null;
		if (varnodes.contains(vn)) {
			c = hlColor;
		}

		if (specialOp == null) {
			return c;
		}

		// look for specific varnode to label with special color
		if (vn == specialVn && token.getPcodeOp() == specialOp) {
			c = specialHlColor;
		}
		return c;
	}
A class to provider a color for highlight a variable using one of the 'slice' actions

@see ForwardSliceAction
@see BackwardsSliceAction
Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/SliceHighlightColorProvider.java