def METHOD_NAME(self, group: FlyingGroup[Any], flight: Flight) -> None:
    for pilot, unit in zip(flight.roster.pilots, group.units):
        # The actual name is a String (the pydcs translatable string), which
        # doesn't define __eq__.
        name = str(unit.name)
        if name in self.aircraft:
            raise RuntimeError(f"Duplicate unit name: {name}")
        self.aircraft[name] = FlyingUnit(flight, pilot)
    if flight.cargo is not None:
        self.add_airlift_units(group, flight.cargo)