void (@Nullable Project project, GradleProjectSettings settings, boolean isDefaultModuleCreation, @Nullable WizardContext wizardContext) { updateProjectRef(project, wizardContext); String gradleHome = settings.getGradleHome(); if (myGradleHomePathField != null) { GradleRuntimeTargetUI.installActionListener(myGradleHomePathField, myProjectRef.get(), GradleBundle.message("gradle.settings.text.home.path")); myGradleHomePathField.setText(gradleHome == null ? "" : gradleHome); myGradleHomePathField.getTextField().setForeground(LocationSettingType.EXPLICIT_CORRECT.getColor()); } resetImportControls(settings); resetGradleJdkComboBox(project, settings, wizardContext); resetWrapperControls(settings.getExternalProjectPath(), settings, isDefaultModuleCreation); resetGradleDelegationControls(wizardContext); if (StringUtil.isEmpty(gradleHome)) { myGradleHomeSettingType = LocationSettingType.UNKNOWN; deduceGradleHomeIfPossible(); } else { File gradleHomeFile = new File(gradleHome); if (GradleInstallationManager.getInstance().isGradleSdkHome(project, gradleHomeFile)) { myGradleHomeSettingType = LocationSettingType.EXPLICIT_CORRECT; } else { myGradleHomeSettingType = GradleInstallationManager.getInstance().suggestBetterGradleHomePath(project, gradleHome) != null ? LocationSettingType.EXPLICIT_CORRECT : LocationSettingType.EXPLICIT_INCORRECT; } myAlarm.cancelAllRequests(); if (myGradleHomeSettingType == LocationSettingType.EXPLICIT_INCORRECT && settings.getDistributionType() == DistributionType.LOCAL) { new DelayedBalloonInfo(MessageType.ERROR, myGradleHomeSettingType, 0).run(); } } updateDeprecatedControls(); }