private Color getTokenColor(ClangToken token) {

		Color tokenColor = syntaxColor[token.getSyntaxType()];
		if (token instanceof ClangFuncNameToken clangFunctionToken) {
			Program program = decompilerPanel.getProgram();
			Function function = DecompilerUtils.getFunction(program, clangFunctionToken);
			if (isValidFunction(function)) {
				Symbol symbol = function.getSymbol();
				tokenColor = symbolInspector.getColor(symbol);
			}
		}

		if (tokenColor != null) {
			return tokenColor;
		}
		return syntaxColor[ClangToken.ERROR_COLOR];
	}
Control the GUI layout for displaying tokenized C code
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/ClangLayoutController.java