public static String createPlateCommentIfNeeded(Program program, String prefix,
			String dataTypeName, String suffix, Address address, DataApplyOptions applyOptions) {

		Listing listing = program.getListing();
		String existingComment = listing.getComment(CommentType.PLATE, address);
		if (!applyOptions.shouldCreateComments()) {
			return existingComment;
		}
		if (dataTypeName != null) {
			if (existingComment != null && existingComment.contains(dataTypeName)) {
				return existingComment;
			}
			String appliedPrefix = (prefix != null) ? (prefix) : "";
			String appliedSuffix = (suffix != null) ? (suffix) : "";
			String appliedExisting = (existingComment != null) ? (existingComment + "\n") : "";
			String appliedComment = appliedExisting + appliedPrefix + dataTypeName + appliedSuffix;
			listing.setComment(address, CommentType.PLATE, appliedComment);
			return appliedComment;
		}
		return existingComment;
	}
Creates a comment if it doesn't already exist at the specified address in the program
and if it doesn't contain the <code>dataTypeName</code> string. 
The comment will contain the prefix, the <code>dataTypeName</code>, and the suffix. 
If a comment already exists without containing the dataTypeName, 
then this comment will be appended to the existing one.

@param program the program.
@param prefix the prefix string that precedes the dataTypeName
@param dataTypeName the name for the data type at the indicated address.
@param suffix the suffix that follows the dataTypeName
@param address the address where the plate comment should be created in the program.
@param applyOptions options indicating whether or not to apply comments.

@return the comment or null.
Ghidra/Features/MicrosoftCodeAnalyzer/src/main/java/ghidra/app/cmd/data/EHDataTypeUtilities.java