private static void associateSourceSetDependencyModelsWithSourceSetModels(@NotNull GradleIdeaModelHolder models) {
    for (var buildModel : models.getAllBuilds()) {
      for (var projectModel : buildModel.getProjects()) {
        var sourceSetModel = (DefaultGradleSourceSetModel)models.getProjectModel(projectModel, GradleSourceSetModel.class);
        var sourceSetDependencyModel = (DefaultGradleSourceSetDependencyModel)models.getProjectModel(projectModel, GradleSourceSetDependencyModel.class);
        if (sourceSetModel == null || sourceSetDependencyModel == null) continue;

        var sourceSets = sourceSetModel.getSourceSets();
        var dependencies = sourceSetDependencyModel.getDependencies();
        var sourceSetNames = new LinkedHashSet<>(sourceSets.keySet());
        sourceSetNames.retainAll(dependencies.keySet());
        for (String sourceSetName : sourceSetNames) {
          var sourceSet = sourceSets.get(sourceSetName);
          var sourceSetDependencies = dependencies.get(sourceSetName);
          sourceSet.setDependencies(sourceSetDependencies);
        }
      }
    }
  }
private static void associateSourceSetDependencyModelsWithSourceSetModels(@NotNull GradleIdeaModelHolder models)