private function parseResourceTypes($ramlData)
    {
        if (isset($ramlData['resourceTypes'])) {
            $keyedResourceTypes = [];
            foreach ($ramlData['resourceTypes'] as $resourceType) {
                foreach ($resourceType as $k => $t) {
                    $keyedResourceTypes[$k] = $t;
                }
            }

            foreach ($ramlData as $key => $value) {
                if (\mb_strpos($key, '/') === 0) {
                    $name = (isset($value['displayName'])) ? $value['displayName'] : \mb_substr($key, 1);
                    $ramlData[$key] = $this->replaceTypes($value, $keyedResourceTypes, $key, $name, $key);
                }
            }
        }

        return $ramlData;
    }