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
Returns the language of given file.

        :param file: File to get language of.
        :type file: unicode
        :return: File language.
        :rtype: Language