private static <M> void buildModelsInSequence(
    @NotNull BuildController controller,
    @NotNull Collection<? extends GradleBuild> buildModels,
    @NotNull Class<M> modelClass,
    @NotNull GradleModelConsumer consumer
  ) {
    for (GradleBuild buildModel : buildModels) {
      for (BasicGradleProject gradleProject : buildModel.getProjects()) {
        M model = controller.findModel(gradleProject, modelClass);
        if (model != null) {
          consumer.consumeProjectModel(gradleProject, model, modelClass);
        }
      }
    }
  }
private static <M> void buildModelsInSequence(
    @NotNull BuildController controller,
    @NotNull Collection<? extends GradleBuild> buildModels,
    @NotNull Class<M> modelClass,
    @NotNull GradleModelConsumer consumer
  )