public static CommentType getCommentType(CodeUnit cu, ProgramLocation loc,
			CommentType defaultCommentType) {
		if (loc instanceof CommentFieldLocation) {
			CommentFieldLocation cfLoc = (CommentFieldLocation) loc;
			return cfLoc.getCommentType();
		}
		else if (loc instanceof PlateFieldLocation) {
			return CommentType.PLATE;
		}
		else if (loc instanceof FunctionRepeatableCommentFieldLocation) {
			return CommentType.REPEATABLE;
		}
		else if (cu != null) {
			if (cu.getComment(CommentType.PRE) != null) {
				return CommentType.PRE;
			}
			if (cu.getComment(CommentType.POST) != null) {
				return CommentType.POST;
			}
			if (cu.getComment(CommentType.EOL) != null) {
				return CommentType.EOL;
			}
			if (cu.getComment(CommentType.PLATE) != null) {
				return CommentType.PLATE;
			}
			if (cu.getComment(CommentType.REPEATABLE) != null) {
				return CommentType.REPEATABLE;
			}
		}
		return defaultCommentType;
	}
Get the comment type from the current location. If the cursor
is not over a comment, then just return EOL as the default.
@param cu
@param loc
@param defaultCommentType
@return comment type
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/CommentTypeUtils.java