public static void saveDotProjectFile(@NotNull Module module, @NotNull String storageRoot) throws IOException {
    try {
      Element rootElement = generateProjectFileContent(ModuleType.get(module), module.getName());

      final File projectFile = new File(storageRoot, EclipseXml.PROJECT_FILE);
      if (!FileUtil.createIfDoesntExist(projectFile)) {
        return;
      }

      EclipseJDOMUtil.output(rootElement, projectFile, module.getProject());
      ApplicationManager.getApplication().runWriteAction(() -> {
        LocalFileSystem.getInstance().refreshAndFindFileByPath(FileUtil.toSystemIndependentName(projectFile.getPath()));
      });
    }
    catch (JDOMException e) {
      LOG.error(e);
    }
  }
public static void saveDotProjectFile(@NotNull Module module, @NotNull String storageRoot)