private function findTransformedItem(OrderInterface $order, OrderItemInterface $transformed)
    {
        foreach ($order->getItems() as $item) {
            if ($item->equals($transformed)) {
                return $item;
            }
        }

        return null;
    }
private function findTransformedItem(OrderInterface $order, OrderItemInterface $transformed)
    {
        foreach ($order->getItems() as $item) {
            if ($item->equals($transformed)) {
                return $item;
            }
        }

        return null;
    }
private function findTransformedItem ( OrderInterface $ order , OrderItemInterface $ transformed ) { foreach ( $ order -> getItems ( ) as $ item ) { if ( $ item -> equals ( $ transformed ) ) { return $ item ; } } return null ; }
Finds the transformed item in the order.

@param OrderInterface $order
@param OrderItemInterface $transformed
@return OrderItemInterface|null
Finds the transformed item in the order .