public static function supportsFlags(): bool
    {
        $rc = new ReflectionClass(Yaml::class);
        $method = $rc->getMethod('parse');
        $params = $method->getParameters();

        return 'flags' === $params[1]->getName();
    }