protected static function checkStatusChange($order, $prevStatusCode)
    {
        if (!empty($prevStatusCode) && $order->statusCode != $prevStatusCode)
            \event(new OrderStatusChanged($order->id, $order->statusCode, $prevStatusCode));
    }