private function fixTypeNamesLegacy(Tokens $tokens, $name)
{
$matchedTokens = $this->matchTypeName($tokens, $name);
if (null === $matchedTokens) {
return;
}
$matchedIndexes = array_keys($matchedTokens);
$matchedIndex = $matchedIndexes[count($matchedIndexes) - 1];
$matchedTokens[$matchedIndex]->setContent('\'Symfony\\Component\\Form\\Extension\\Core\\Type\\' . $name . 'Type\'');
$this->fixTypeNamesLegacy($tokens, $name);
}