public String getComment(long snap, Address address, CommentType commentType) {
		try (LockHold hold = LockHold.lock(lock.readLock())) {
			for (DBTraceCommentEntry entry : reduce(TraceAddressSnapRangeQuery.at(address, snap))
					.values()) {
				if (entry.type != commentType.ordinal()) {
					continue;
				}
				return entry.comment;
			}
			return null;
		}
	}
Get the comment at the given point

@param snap the snap
@param address the address
@param commentType the type of comment
@return the comment text
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/listing/DBTraceCommentAdapter.java