code: protected function applySaleItemRecursively(SaleItemInterface $item)
      {
          $this->stockAssigner->applySaleItem($item);
  
          foreach ($item->getChildren() as $child) {
              $this->applySaleItemRecursively($child);
          }
      }
docs: Applies the sale item to stock units recursively.
  
  @param SaleItemInterface $item