The current implementation for getLanguage uses file extensions for returning the tree-sitter language binding.
Some filetypes do not have extensions, for example, Dockerfile.
getLanguage should be able to return the language bindings in case of these filetypes.