// Calculates the normal price of the struct.
$price->setCalculatedPrice( $this->priceCalculatorService->calculatePrice($rule->getPrice(), $tax, $context) );
// Check if a pseudo price is defined and calculates it too.
$price->setCalculatedPseudoPrice( $this->priceCalculatorService->calculatePrice($rule->getPseudoPrice(), $tax, $context) );