<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_file_language(self, file):
 """ Returns the language of given file. :param file: File to get language of. :type file: unicode :return: File language. :rtype: Language """


        for language in self.__languages:
            if re.search(language.extensions, file):
                LOGGER.debug("> '{0}' file detected language: '{1}'.".format(file, language.name))
                return language