def METHOD_NAME(self, bug):
    for field in ["assigned_to", "triage_owner"]:
        person = bug.get(field, "")
        if person and not utils.is_no_assignee(person):
            return {"mail": person, "nickname": bug[f"{field}_detail"]["nick"]}
    return None