So it's actually grabbed from the PROVIDER_MAP and not the SUPPORTED_PROVIDERS. It just checks if that all caps version is in SUPPORTED_PROVIDERS. PROVIDER_MAP has keys as uppercase and values as lowercase.

https://gist.github.com/riltsken/4cd37630cae696fb8c11