code: def reload_file(self, is_modified=True):
          
  
          if not foundations.common.path_exists(self.__file):
              raise foundations.exceptions.FileExistsError("{0} | '{1}' file doesn't exists!".format(
                  self.__class__.__name__, self.__file))
  
          LOGGER.debug("> Reloading '{0}' file.".format(self.__file))
          reader = foundations.io.File(self.__file)
          if reader.cache():
              self.set_content(reader.content)
              self.set_file(self.__file, is_modified=is_modified)
  
              self.file_reloaded.emit()
              return True
docs: Reloads the current editor file.
  
          :param is_modified: File modified state.
          :type is_modified: bool
          :return: Method success.
          :rtype: bool