protected function getStockAdjustmentFromEvent(ResourceEventInterface $event)
    {
        $stockAdjustment = $event->getResource();

        if (!$stockAdjustment instanceof StockAdjustmentInterface) {
            throw new InvalidArgumentException("Expected instance of " . StockAdjustmentInterface::class);
        }

        return $stockAdjustment;
    }