def METHOD_NAME(
    *,
    db_session,
    project_id: PrimaryKey,
    class_instance: Type[Base],
    notification_params: dict = None,
):
    """Sends notifications."""
    notifications = get_all_enabled(db_session=db_session, project_id=project_id)
    for notification in notifications:
        for search_filter in notification.filters:
            match = search_filter_service.match(
                db_session=db_session,
                subject=search_filter.subject,
                filter_spec=search_filter.expression,
                class_instance=class_instance,
            )
            if match:
                send(
                    db_session=db_session,
                    project_id=project_id,
                    notification=notification,
                    notification_params=notification_params,
                )
        if not notification.filters:
            send(
                db_session=db_session,
                project_id=project_id,
                notification=notification,
                notification_params=notification_params,
            )