def METHOD_NAME(cls, user, invitation):
    NotificationHandler.create_notification_for_users(
        notification_type=cls.type,
        recipients=[invitation.invited_by],
        sender=user,
        data=asdict(
            InvitationNotificationData(
                invitation.id, invitation.workspace.id, invitation.workspace.name
            )
        ),
        workspace=invitation.workspace,
    )