void ( @NotNull BuildController controller, @NotNull GradleBuild buildModel, @NotNull BuildModelConsumer consumer ) { T instance = controller.findModel(buildModel, modelClass); if (instance != null) { consumer.consume(buildModel, instance, modelClass); } }