private void setComments(CodeUnit cu, Address addr, CodeUnitInfo info) {

		String[] plateComment = info.getPlateComment();
		String[] preComment = info.getPreComment();
		String[] postComment = info.getPostComment();
		String[] eolComment = info.getEOLComment();
		String[] repeatableComment = info.getRepeatableComment();

		if (plateComment != null) {
			String[] oldComment = cu.getCommentAsArray(CommentType.PLATE);
			cu.setCommentAsArray(CommentType.PLATE, appendComment(oldComment, plateComment));
		}
		if (preComment != null) {
			String[] oldComment = cu.getCommentAsArray(CommentType.PRE);
			cu.setCommentAsArray(CommentType.PRE, appendComment(oldComment, preComment));
		}
		if (postComment != null) {
			String[] oldComment = cu.getCommentAsArray(CommentType.POST);
			cu.setCommentAsArray(CommentType.POST, appendComment(oldComment, postComment));
		}
		if (eolComment != null) {
			String[] oldComment = cu.getCommentAsArray(CommentType.EOL);
			cu.setCommentAsArray(CommentType.EOL, appendComment(oldComment, eolComment));
		}
		if (repeatableComment != null) {
			String[] oldComment = cu.getCommentAsArray(CommentType.REPEATABLE);
			cu.setCommentAsArray(CommentType.REPEATABLE,
				appendComment(oldComment, repeatableComment));
		}
	}
Set the comments at the given address.
@param cu code unit
@param addr address of where to put the comments
@param info info that has the comments to set
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/comments/CodeUnitInfoPasteCmd.java