protected function renderFile($template, $target, $parameters)
    {
        if (is_file($target)) {
            return sprintf('<comment>%s already exists</comment>', $this->getRelativeFilePath($target));
        }
        if (!is_dir(dirname($target))) {
            mkdir(dirname($target), 0777, true);
        }

        if (file_put_contents($target, $this->render($template, $parameters)) !== false) {
            return sprintf('<info>Create %s</info>', $this->getRelativeFilePath($target));
        }

        return null;
    }