def METHOD_NAME(self, local_filters, external_filters) -> models.QuerySet:
    _local_filters = models.Q()
    for k, v in local_filters.items():
        _local_filters &= models.Q(**{k: v})
    _external_filters = models.Q()
    for k, v in external_filters.items():
        _external_filters &= models.Q(**{k: v})
    order_case = VertrouwelijkheidsAanduiding.get_order_expression(
        "vertrouwelijkheidaanduiding"
    )
    annotations = {"_va_order": order_case}
    if self.authorizations_lookup:
        # If the current queryset is not an InformatieObjectQuerySet, first
        # retrieve the canonical IDs of EnkelvoudigInformatieObjects
        # for which the user is authorized and then return the objects
        # related to those EnkelvoudigInformatieObjectCanonicals
        model = apps.get_model("documenten", "EnkelvoudigInformatieObject")
        if settings.CMIS_ENABLED:
            filtered = model.objects.annotate(**annotations).filter(
                _local_filters | _external_filters
            )
        else:
            filtered = (
                model.objects.annotate(**annotations)
                .filter(_local_filters | _external_filters)
                .values("canonical")
            )
        queryset = self.filter(informatieobject__in=filtered)
        # bring it all together now to build the resulting queryset
    else:
        queryset = self.annotate(**annotations).filter(
            _local_filters | _external_filters
        )
    return queryset