code: def save_file(self, file=None):
          
  
          editor = file and self.get_editor(file) or self.get_current_editor()
          if not editor:
              return False
  
          LOGGER.info("{0} | Saving '{1}' file!".format(self.__class__.__name__, editor.file))
          self.__lock_editor(editor)
          if not editor.is_untitled and foundations.common.path_exists(editor.file):
              return editor.save_file()
          else:
              return self.save_fileAs()
docs: Saves either given file or current **Script_Editor_tabWidget** Widget tab Model editor file.
  
          :param file: File to save.
          :type file: unicode
          :return: Method success.
          :rtype: bool