protected function getFormattedVersionAlias($alias, Configuration $configuration)
    {
        $version = $configuration->resolveVersionAlias($alias);

        if ($version === null) {
            if ($alias == 'next') {
                return 'Already at latest version';
            } elseif ($alias == 'prev') {
                return 'Already at first version';
            }
        }

        if ($version === '0') {
            return '<comment>0</comment>';
        }

        return $configuration->getDateTime($version) . ' (<comment>' . $version . '</comment>)';
    }