def METHOD_NAME(self, recipient: RpcActor) -> set[Project]:
    if not self.release:
        return set()
    if recipient.actor_type == ActorType.USER:
        if self.organization.flags.allow_joinleave:
            return self.projects
        team_ids = self.get_users_by_teams()[recipient.id]
    else:
        team_ids = [recipient.id]
    projects: set[Project] = Project.objects.get_for_team_ids(team_ids).filter(
        id__in={p.id for p in self.projects}
    )
    return projects