private function createProgressBar(
        BufferedOutputInterface $output,
        Project $project
    ): ProgressBar {
        $progressBar = new ProgressBar($output, 1);
        $progressBar->setFormatDefinition('custom', '%project%: [%bar%] %message%');
        $progressBar->setFormat('custom');
        $progressBar->setMessage(
            sprintf(
                "\033[38;5;%sm%s\033[0m",
                $project->getColorCode(),
                $project->getName()
            ),
            'project'
        );

        return $progressBar;
    }