private List<DBRecord> subListByDate(List<DBRecord> records, long date) {

		for (int i = records.size() - 1; i >= 0; i--) {
			DBRecord rec = records.get(i);
			if (date != rec.getLongValue(CommentHistoryAdapter.HISTORY_DATE_COL)) {
				return records.subList(i + 1, records.size());
			}
		}

		// all records have the same date
		return records.subList(0, records.size());
	}
Get the comment history for the comment type at the given address 

@param addr address for the comment history
@param commentType comment type
@return zero length array if no history exists
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/CodeManager.java