public String getTextUnderCursor() {

		FieldLocation location = fieldPanel.getCursorLocation();
		ClangTextField textField = (ClangTextField) fieldPanel.getCurrentField();
		if (textField == null) {
			return null;
		}

		ClangToken token = textField.getToken(location);
		if (!(token instanceof ClangCommentToken)) {
			return token.getText(); // non-comment tokens are not multi-word; use the token's text
		}

		FieldElement clickedElement = textField.getClickedObject(location);
		if (clickedElement instanceof AnnotatedTextFieldElement) {
			AnnotatedTextFieldElement annotation = (AnnotatedTextFieldElement) clickedElement;
			return annotation.getDisplayString();
		}

		String text = textField.getText();
		return StringUtilities.findWord(text, location.col);
	}
The color used in a primary highlight to mark the token that was clicked. This is used in
'slice' actions to mark the source of the slice.

@return the color
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerPanel.java