private static function getCachePath(ContainerInterface $container, array $options): ?string
    {
        $cachePath = $options['cache_path'];

        if ($cachePath === null && $container->has(KernelContract::class)) {
            $cachePath = $container->get(KernelContract::class)->getStoragePath('staticalproxy');
        }

        return $cachePath;
    }