public function getConstraintFromAll(\ReflectionProperty $reflectionProperty, $constraintClass)
    {
        /** @var All $allConstraint */
        if (!($allConstraint = $this->getConstraint($reflectionProperty, All::class, false))) {
            return;
        }

        foreach ($allConstraint->constraints as $constraint) {
            if ($constraint instanceof $constraintClass) {
                return $constraint;
            }
        }
    }