Get list of current opened files' languages

def poll_open_file_languages(self):
        """Get list of current opened files' languages"""
        languages = []
        for index in range(self.get_stack_count()):
            languages.append(
                self.tabs.widget(index).language.lower())
        return set(languages)