private function validateIncludeRegex($config): void
    {
        if (! Validator::key('include', Validator::stringType())->validate($config)
            && ! Validator::key('include', Validator::nullType())->validate($config)
        ) {
            throw new InvalidConfigException('"include" parameter must be set as a string or a null value.');
        }
    }