code: def __cache(self, file, content, document):
          
  
          self.__files_cache.add_content(**{file: CacheData(content=content, document=document)})
docs: Caches given file.
  
          :param file: File to cache.
          :type file: unicode
          :param content: File content.
          :type content: list
          :param document: File document.
          :type document: QTextDocument