private void saveChangedProjectFile(
     final VirtualFile file, @Nullable final Project project, final StateStorage storage) {
   if (file.exists()) {
     copyToTemp(file);
   }
   registerProjectToReload(project, file, storage);
 }
 @Override
 public void saveChangedProjectFile(final VirtualFile file, final Project project) {
   if (file.exists()) {
     copyToTemp(file);
   }
   registerProjectToReload(project, file, null);
 }