code: protected function getSaleItemFromEvent(ResourceEventInterface $event)
      {
          $item = $event->getResource();
  
          if (!$item instanceof OrderItemInterface) {
              throw new InvalidArgumentException("Expected instance of OrderItemInterface");
          }
  
          return $item;
      }
docs: @inheritdoc
  
  @return OrderItemInterface