private String getDisplayText(String[] text) {
		// assume that the 'extra text' means that is how the user wants to display the annotation
		if (text.length > 2) {
			StringBuffer buffer = new StringBuffer();
			for (int i = 2; i < text.length; i++) {
				buffer.append(text[i]).append(" ");
			}
			buffer.deleteCharAt(buffer.length() - 1); // remove last space
			return buffer.toString();
		}

		String symbolText = getUnvalidatedDisplayText(text);
		if (symbolText != null) {
			String programName = getProgramText(text);
			return programName + "@" + symbolText;
		}

		return text[1];
	}
An annotated string handler that allows handles annotations that begin with
{@link #SUPPORTED_ANNOTATIONS}.  This class expects one string following the annotation
text that is the program name.  The display text will be that of the program name.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/ProgramAnnotatedStringHandler.java