def METHOD_NAME(domain, exclude_doc_types=None, include_doc_types=None):
    """
    :return: A generator of (doc_class, list(doc_ids))
    """
    for id_provider in DOC_PROVIDERS:
        if include_doc_types and id_provider.doc_type not in include_doc_types:
            continue
        if exclude_doc_types and id_provider.doc_type in exclude_doc_types:
            continue
        for doc_type, doc_ids in id_provider.get_doc_ids(domain):
            yield doc_type, doc_ids