def METHOD_NAME(self, waypoint: MovingPoint) -> None:
    if self.flight.is_helo:
        waypoint.tasks.append(OptFormation.rotary_wedge())
    else:
        waypoint.tasks.append(OptFormation.finger_four_open())
    doctrine = self.flight.coalition.doctrine
    if self.flight.flight_type == FlightType.ESCORT:
        targets = [
            Targets.All.Air.Planes.Fighters.id,
            Targets.All.Air.Planes.MultiroleFighters.id,
        ]
        if self.flight.is_helo:
            targets = [
                Targets.All.Air.Helicopters.id,
                Targets.All.GroundUnits.AirDefence.id,
                Targets.All.GroundUnits.Infantry.id,
                Targets.All.GroundUnits.GroundVehicles.ArmoredVehicles.id,
                Targets.All.Naval.Ships.ArmedShips.LightArmedShips.id,
            ]
        self.configure_escort_tasks(
            waypoint,
            targets,
            max_dist=doctrine.escort_engagement_range.nautical_miles,
            vertical_spacing=doctrine.escort_spacing.feet,
        )
    elif self.flight.flight_type == FlightType.SEAD_ESCORT:
        if isinstance(self.flight.package.target, NavalControlPoint):
            self.configure_escort_tasks(
                waypoint,
                [
                    Targets.All.Naval.id,
                    Targets.All.GroundUnits.AirDefence.AAA.SAMRelated.id,
                ],
                max_dist=doctrine.sead_escort_engagement_range.nautical_miles,
                vertical_spacing=doctrine.sead_escort_spacing.feet,
            )
        else:
            self.configure_escort_tasks(
                waypoint,
                [Targets.All.GroundUnits.AirDefence.AAA.SAMRelated.id],
                max_dist=doctrine.sead_escort_engagement_range.nautical_miles,
                vertical_spacing=doctrine.sead_escort_spacing.feet,
            )
        # Let the AI use ECM to preemptively defend themselves.
        ecm_option = OptECMUsing(value=OptECMUsing.Values.UseIfDetectedLockByRadar)
        waypoint.tasks.append(ecm_option)
    elif not self.flight.flight_type.is_air_to_air:
        # Capture any non A/A type to avoid issues with SPJs that use the primary radar such as the F/A-18C.
        # You can bully them with STT to not be able to fire radar guided missiles at you,
        # so best choice is to not let them perform jamming for now.
        # Let the AI use ECM to defend themselves.
        ecm_option = OptECMUsing(value=OptECMUsing.Values.UseIfOnlyLockByRadar)
        waypoint.tasks.append(ecm_option)