@classmethod
def register_notification(cls, notification_cls):
    """Register a class as notification.

        Use only to register concrete notification or payload classes,
        do not register base classes intended for inheritance only.
        """
    cls.register_if(False)(notification_cls)
    cls.notification_classes.append(notification_cls)
    return notification_cls
