public static String getDisplayString(String rawCommentText, Program program) {

		// Posterity: this code used to duplicate the algorithm of the method we now call, 
		//            but seemed unnecessary.  Refer to the history if needed.
		AttributedString prototype = createPrototype();
		FieldElement element = parseTextForAnnotations(rawCommentText, program, prototype, 0);
		String displayText = element.getText();
		return displayText;
	}
Returns the display string for the given raw annotation text.  Annotations are 
encoded strings that fit this pattern: <code>{@literal {@name text}}</code>.  This method
will parse the given text, converting any annotations into their display version.

@param rawCommentText text that may include annotations
@param program the program
@return the display string
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/CommentUtils.java