def METHOD_NAME(
    squadron_def: Optional[SquadronDef], config: SquadronConfig
) -> Optional[SquadronDef]:
    if squadron_def is None:
        return None
    if config.name is not None:
        squadron_def.name = config.name
    if config.nickname is not None:
        squadron_def.nickname = config.nickname
    if config.female_pilot_percentage is not None:
        squadron_def.female_pilot_percentage = config.female_pilot_percentage
    return squadron_def