public function validate($item, Constraint $constraint)
    {
        if (null === $item) {
            return;
        }

        if (!$item instanceof SaleItemInterface) {
            throw new UnexpectedTypeException($item, SaleItemInterface::class);
        }
        if (!$constraint instanceof SaleItem) {
            throw new UnexpectedTypeException($constraint, SaleItem::class);
        }

        try {
            $this->checkPrivacyIntegrity($item, $constraint);
            $this->checkInvoiceIntegrity($item, $constraint);
            $this->checkShipmentIntegrity($item, $constraint);
        } catch (ValidationFailedException $e) {
            return;
        }
    }
public function validate($item, Constraint $constraint)
    {
        if (null === $item) {
            return;
        }

        if (!$item instanceof SaleItemInterface) {
            throw new UnexpectedTypeException($item, SaleItemInterface::class);
        }
        if (!$constraint instanceof SaleItem) {
            throw new UnexpectedTypeException($constraint, SaleItem::class);
        }

        try {
            $this->checkPrivacyIntegrity($item, $constraint);
            $this->checkInvoiceIntegrity($item, $constraint);
            $this->checkShipmentIntegrity($item, $constraint);
        } catch (ValidationFailedException $e) {
            return;
        }
    }
{@inheritdoc}