def __store_recent_file(self, file):
        """
        Stores given recent file into the settings.

        :param file: File to store.
        :type file: unicode
        """

        LOGGER.debug("> Storing '{0}' file in recent files.".format(file))

        recentFiles = [foundations.strings.to_string(recentFile)
                       for recentFile in self.__settings.get_key(self.__settings_section, "recentFiles").toStringList()
                       if foundations.common.path_exists(recentFile)]
        if not recentFiles:
            recentFiles = []

        if file in recentFiles:
            recentFiles.pop(recentFiles.index(file))
        recentFiles.insert(0, file)
        del recentFiles[self.__maximum_recent_files:]
        recentFiles = self.__settings.set_key(self.__settings_section, "recentFiles", recentFiles)
        self.recent_files_changed.emit()
Stores given recent file into the settings.

        :param file: File to store.
        :type file: unicode