private static void convertToDirectoryBasedFormat(Project project, IProjectStore store, Path baseDir, Path ideaDir) throws IOException {
    if (Files.isDirectory(ideaDir)) {
      LocalFileSystem.getInstance().refreshAndFindFileByNioFile(ideaDir);
    }
    else {
      createDir(ideaDir);
    }

    store.clearStorages();
    store.setPath(baseDir);
    WriteAction.run(() -> JpsProjectModelSynchronizer.Companion.getInstance(project).convertToDirectoryBasedFormat());
  }
private static void convertToDirectoryBasedFormat(Project project, IProjectStore store, Path baseDir, Path ideaDir)