code: def get_file_language(self, file):
          
  
          for language in self.__languages:
              if re.search(language.extensions, file):
                  LOGGER.debug("> '{0}' file detected language: '{1}'.".format(file, language.name))
                  return language
docs: Returns the language of given file.
  
          :param file: File to get language of.
          :type file: unicode
          :return: File language.
          :rtype: Language