def METHOD_NAME(cls, objects: Iterable[ActorTarget]) -> List["RpcActor"]:
    """
    Create a list of RpcActor instaces based on a collection of 'objects'
    Objects will be grouped by the kind of actor they would be related to.
    Queries for actors are batched to increase efficiency. Users that are
    missing actors will have actors generated.
    """
    from sentry.models.actor import Actor
    from sentry.models.team import Team
    from sentry.models.user import User
    result: List["RpcActor"] = []
    grouped_by_type: MutableMapping[str, List[int]] = defaultdict(list)
    team_slugs: MutableMapping[int, str] = {}
    for obj in objects:
        if isinstance(obj, cls):
            result.append(obj)
        if isinstance(obj, (User, RpcUser)):
            grouped_by_type[ActorType.USER].append(obj.id)
        if isinstance(obj, (Team, RpcTeam)):
            team_slugs[obj.id] = obj.slug
            grouped_by_type[ActorType.TEAM].append(obj.id)
    if grouped_by_type[ActorType.TEAM]:
        team_ids = grouped_by_type[ActorType.TEAM]
        actors = Actor.objects.filter(type=ACTOR_TYPES["team"], team__in=team_ids)
        actors_by_team_id = {actor.team_id: actor for actor in actors}
        for team_id in team_ids:
            actor = actors_by_team_id[team_id]
            result.append(
                RpcActor(
                    actor_id=actor.id,
                    id=actor.team_id,
                    actor_type=ActorType.TEAM,
                    slug=team_slugs.get(actor.team_id),
                )
            )
    if grouped_by_type[ActorType.USER]:
        user_ids = grouped_by_type[ActorType.USER]
        actors = Actor.objects.filter(type=ACTOR_TYPES["user"], user_id__in=user_ids)
        actors_by_user_id = {actor.user_id: actor for actor in actors}
        for user_id in user_ids:
            if user_id in actors_by_user_id:
                actor = actors_by_user_id[user_id]
            else:
                actor = get_actor_for_user(user_id)
            result.append(
                RpcActor(actor_id=actor.id, id=actor.user_id, actor_type=ActorType.USER)
            )
    return result