@Override
	public boolean applyTo(Program program) {
		CodeUnit cu = getCodeUnit(program);

		if (cu != null) {
			if (commentChanged(cu.getComment(CommentType.PRE), preComment)) {
				String updatedPreComment = CommentUtils.fixupAnnotations(preComment, program);
				updatedPreComment = CommentUtils.sanitize(updatedPreComment);
				cu.setComment(CommentType.PRE, updatedPreComment);
			}
			if (commentChanged(cu.getComment(CommentType.POST), postComment)) {
				String updatedPostComment = CommentUtils.fixupAnnotations(postComment, program);
				updatedPostComment = CommentUtils.sanitize(updatedPostComment);
				cu.setComment(CommentType.POST, updatedPostComment);
			}
			if (commentChanged(cu.getComment(CommentType.EOL), eolComment)) {
				String updatedEOLComment = CommentUtils.fixupAnnotations(eolComment, program);
				updatedEOLComment = CommentUtils.sanitize(updatedEOLComment);
				cu.setComment(CommentType.EOL, updatedEOLComment);
			}
			if (commentChanged(cu.getComment(CommentType.PLATE), plateComment)) {
				String updatedPlateComment = CommentUtils.fixupAnnotations(plateComment, program);
				updatedPlateComment = CommentUtils.sanitize(updatedPlateComment);
				cu.setComment(CommentType.PLATE, updatedPlateComment);
			}
			if (commentChanged(cu.getComment(CommentType.REPEATABLE), repeatableComment)) {
				String updatedRepeatableComment =
					CommentUtils.fixupAnnotations(repeatableComment, program);
				updatedRepeatableComment = CommentUtils.sanitize(updatedRepeatableComment);
				cu.setComment(CommentType.REPEATABLE, updatedRepeatableComment);
			}
		}
		return true;
	}
return true if the newValue and oldValue are different
@param newValue the value that we desire to set
@param oldValue the existing value
@return boolean
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/comments/SetCommentsCmd.java