def annotate_with_overlapping_insertions(putative_record, control_records):
    """If overlapping insertion of the same type is found list them in the overlaps attribute."""
    putative_insert_reference = putative_record.attributes.get('insert_reference_name')
    overlapping_ids = []
    for control_record in control_records:
        if control_record.source == 'findcluster' and control_record.attributes.get('insert_reference_name') == putative_insert_reference:
            overlapping_ids.append(control_record.attributes.get('ID'))
    putative_record.attributes['overlaps'] = ",".join(overlapping_ids)
    return putative_record