public static function isConstraintsValidationEnabled($objectClasses, $annotationReader)
    {
        $enabled = Configuration::isConstraintsValidationEnabled();

        foreach ($objectClasses as $class) {
            if ($annotationReader->getClassAnnotation($class, self::$disableConstraintsValidationAnnotationClass) !== null) {
                $enabled = false;
                break;
            }
            if ($annotationReader->getClassAnnotation($class, self::$enableConstraintsValidationAnnotationClass) !== null) {
                $enabled = true;
                break;
            }
        }

        return $enabled;
    }