def METHOD_NAME(self, ignore_filtering_by_available_teams=False):
    escalation_chain_id = self.request.query_params.get("escalation_chain")
    user_id = self.request.query_params.get("user")
    slack_channel_id = self.request.query_params.get("slack_channel")
    channel_filter_id = self.request.query_params.get("channel_filter")
    lookup_kwargs = {}
    if escalation_chain_id is not None:
        lookup_kwargs.update({"escalation_chain__public_primary_key": escalation_chain_id})
    if user_id is not None:
        lookup_kwargs.update({"notify_to_users_queue__public_primary_key": user_id})
    if slack_channel_id is not None:
        lookup_kwargs.update({"escalation_chain__channel_filters__slack_channel_id": slack_channel_id})
    if channel_filter_id is not None:
        lookup_kwargs.update({"escalation_chain__channel_filters__public_primary_key": channel_filter_id})
    queryset = EscalationPolicy.objects.filter(
        Q(**lookup_kwargs),
        Q(escalation_chain__organization=self.request.auth.organization),
        Q(escalation_chain__channel_filters__alert_receive_channel__deleted_at=None),
        Q(step__in=EscalationPolicy.INTERNAL_DB_STEPS) | Q(step__isnull=True),
    ).distinct()
    if not ignore_filtering_by_available_teams:
        queryset = queryset.filter(*self.available_teams_lookup_args).distinct()
    queryset = self.serializer_class.setup_eager_loading(queryset)
    return queryset