private static void saveProjectBuildClasspathWorkspaceEntity(
    @NotNull Project project,
    @NotNull Map<String, ExternalProjectBuildClasspathPojo> projectBuildClasspath
  ) {
    modifyWorkspaceModel(
      project,
      ExternalSystemBundle.message("external.system.local.settings.workspace.model.project.update"),
      "AbstractExternalSystemLocalSettings update",
      storage -> {
        Sequence<ExternalProjectsBuildClasspathEntity> entities = storage.entities(ExternalProjectsBuildClasspathEntity.class);
        Iterator<ExternalProjectsBuildClasspathEntity> entityIterator = entities.iterator();
        ExternalProjectsBuildClasspathEntity.Builder newClasspathEntity = getExternalProjectsBuildClasspathEntity(projectBuildClasspath);
        if (!entityIterator.hasNext()) {
          storage.addEntity(newClasspathEntity);
        }
        else {
          modifyExternalProjectsBuildClasspathEntity(storage, entityIterator.next(), modifiableEntity -> {
            modifiableEntity.setProjectsBuildClasspath(newClasspathEntity.getProjectsBuildClasspath());
            return null;
          });
        }
      });
  }
private static void saveProjectBuildClasspathWorkspaceEntity(
    @NotNull Project project,
    @NotNull Map<String, ExternalProjectBuildClasspathPojo> projectBuildClasspath
  )