private static File dumpModulesPaths(@NotNull Project project) throws IOException {
    ApplicationManager.getApplication().assertReadAccessAllowed();

    Properties res = new Properties();

    MavenProjectsManager manager = MavenProjectsManager.getInstance(project);

    for (Module module : ModuleManager.getInstance(project).getModules()) {
      if (manager.isMavenizedModule(module)) {
        MavenProject mavenProject = manager.findProject(module);
        if (mavenProject != null && !manager.isIgnored(mavenProject)) {
          res.setProperty(mavenProject.getMavenId().getGroupId()
                          + ':' + mavenProject.getMavenId().getArtifactId()
                          + ":pom"
                          + ':' + mavenProject.getMavenId().getVersion(),
                          mavenProject.getFile().getPath());

          res.setProperty(mavenProject.getMavenId().getGroupId()
                          + ':' + mavenProject.getMavenId().getArtifactId()
                          + ':' + mavenProject.getPackaging()
                          + ':' + mavenProject.getMavenId().getVersion(),
                          mavenProject.getOutputDirectory());

          res.setProperty(mavenProject.getMavenId().getGroupId()
                          + ':' + mavenProject.getMavenId().getArtifactId()
                          + ":test-jar"
                          + ':' + mavenProject.getMavenId().getVersion(),
                          mavenProject.getTestOutputDirectory());

          addArtifactFileMapping(res, mavenProject, "sources");
          addArtifactFileMapping(res, mavenProject, "test-sources");
          addArtifactFileMapping(res, mavenProject, "javadoc");
          addArtifactFileMapping(res, mavenProject, "test-javadoc");
        }
      }
    }

    File file = new File(PathManager.getSystemPath(), "Maven/idea-projects-state-" + project.getLocationHash() + ".properties");
    FileUtil.ensureExists(file.getParentFile());

    try (OutputStream out = new BufferedOutputStream(new FileOutputStream(file))) {
      res.store(out, null);
    }

    return file;
  }
private static File dumpModulesPaths(@NotNull Project project)