protected function errorIfCompiledIncludesIsEmpty(Config $config): ?Error
    {
        $includes = $config->compileIncludes();

        return empty($includes)
            ? ResultFactory::makeError($this, 'Includes is empty.')
            : null;
    }