public function parseApi($class, $normalize)
    {
        $versions = $this->getVersions($class);

        $parsedApi = new ParsedApi($class);
        foreach ($versions['versions'] as $v => $versionClass) {
            $classParser = new ClassParser($versionClass, $normalize);
            $parsedApi->addVersion($classParser->getParsedClass(), $v);
        }

        $parsedApi->setCurrentVersion($versions['current']);
        $parsedApi->setLatestVersion($versions['latest']);

        return $parsedApi;
    }