NbGradleModel initialMainModel = mainModel.create();
for (NbGradleExtensionRef extensionRef: GradleModelLoader.getUnloadedExtensions(project, initialMainModel)) {
List<Object> extensionModels = new LinkedList<>();
GradleModelDefQuery1 query1 = extensionRef.getModelNeeds().getQuery1();
for (Class<?> modelClass: query1.getToolingModels(gradleTarget)) {
try {
Object model = found.get(modelClass);
if (model == null) {
progress.progress(NbStrings.getFetchingToolingModel(modelClass));
model = getModelWithProgress(projectConnection, modelClass);