public function actionGenerate()
    {
        $this->stdout("Polary Devkit Tool (based on Yii)\n\n");
        try {
            $component = $this->getComponent();
            $configList = $this->getConfig($component);
            $config = new Config([
                'files' => $configList,
            ]);
            $builder = new Builder([
                'components' => $config->getComponents(),
                'template'   => require __DIR__ . '/templates/helper.php',
            ]);
            if ($component->result === null) {
                $component->result = ($this->getDetector()->detect() === 'basic') ?
                    '@app/_ide_components.php' :
                    '@console/../_ide_components.php';
            }

            $result = Yii::getAlias($component->result);
            $result = FileHelper::normalizePath($result);

            $this->stdout("Generate new IDE auto-completion code '{$result}'\n");
            $time = microtime(true);
            $builder->build($result);
            $this->stdout('New auto-completion code created successfully. (time: ' . sprintf('%.3f', microtime
                    (true) - $time) . "s)\n", Console::FG_GREEN);
        } catch (Exception $exception) {
            $this->stdout('Generate failed ' . $exception->getMessage() .  "\n", Console::FG_RED);
        }
    }