protected function taskMagentoSetupStaticContentDeploy()
    {
        /** @var array $themes */
        $themes     = $this->config(Config::KEY_DEPLOY . '/' . Config::KEY_THEMES);
        $magentoDir = $this->config(Config::KEY_DEPLOY . '/' . Config::KEY_APP_DIR);

        /** @var RoboFile|CollectionBuilder $collection */
        $collection = $this->collectionBuilder();
        foreach ($themes as $theme) {
            if (!array_key_exists('code', $theme)) {
                throw new \RuntimeException('invalid theme config: code is missing');
            }

            $task = $collection->taskMagentoSetupStaticContentDeployTask();
            $task->addTheme($theme['code']);
            $task->addLanguages($theme['languages']);
            $task->jobs(16);
            $task->dir($magentoDir);
        }

        return $collection;
    }