The Translator::getMessages() method is not part of any of the interfaces Translator implements. But as the Translator is @api, it probably is something "official".
FWIW, inside Symfony this method is used only from tests.
Is that something that should be adressed? If not, feel free to close this issue.