There is a ExtensionGuesser::getInstance(); singleton used by the Validator Component. I guess it will be better to use this one.