def METHOD_NAME(self, data, many):
    reference_records = self.get_resolved_references_by_control_number(
        data)
    if not many:
        return self.get_resolved_reference(data, reference_records)
    references = []
    for reference in data:
        resolved_reference = self.get_resolved_reference(
            reference, reference_records)
        references.append(resolved_reference)
    return references