private boolean hasComment(CodeUnit codeUnit, ProgramLocation loc) {
		if (codeUnit == null) {
			return false;
		}
		CommentType commentType = CommentTypeUtils.getCommentType(null, loc, null);
		return (commentType != null && codeUnit.getComment(commentType) != null);
	}
Called by the deleteAction to delete an end-of-line comment.
@param program the {@link Program} for which to act
@param loc the {@link ProgramLocation} for which to delete the comment
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/comments/CommentsPlugin.java