private function renderEditor(ConsoleOutputContract $output, Throwable $exception): void
    {
        $output->writeln(\sprintf(
            'at <fg=green>%s</>' . ':<fg=green>%s</>',
            $exception->getFile(),
            $exception->getLine()
        ));

        $range = self::getFileLines(
            $exception->getFile(),
            $exception->getLine() - 5,
            10
        );

        foreach ($range as $k => $code) {
            $line = $k + 1;
            $code = $exception->getLine() === $line ? \sprintf('<bg=red>%s</>', $code) : $code;
            $output->writeln(\sprintf('%s: %s', $line, $code));
        }

        $output->writeln('');
    }