private static void associateTaskModelsWithExternalProjects(@NotNull GradleIdeaModelHolder models) {
    for (var buildModel : models.getAllBuilds()) {
      for (var projectModel : buildModel.getProjects()) {
        var externalProject = (DefaultExternalProject)models.getProjectModel(projectModel, ExternalProject.class);
        var taskModel = (DefaultGradleTaskModel)models.getProjectModel(projectModel, GradleTaskModel.class);
        if (externalProject == null || taskModel == null) continue;

        externalProject.setTaskModel(taskModel);
      }
    }
  }
private static void associateTaskModelsWithExternalProjects(@NotNull GradleIdeaModelHolder models)