void () { if (myGradleDistributionComboBox == null) return; if (myGradleHomePathField == null) return; boolean localEnabled = getSelectedGradleDistribution() == DistributionType.LOCAL; boolean wrapperSelected = getSelectedGradleDistribution() == DistributionType.DEFAULT_WRAPPED; myGradleHomePathField.setEnabled(localEnabled); myGradleHomePathField.setVisible(localEnabled); if (myGradleDistributionHint != null) { myGradleDistributionHint.setEnabled(wrapperSelected); myGradleDistributionHint.setVisible(wrapperSelected); } if (localEnabled) { if (myGradleHomePathField.getText().isEmpty()) { deduceGradleHomeIfPossible(); } else { Project project = myProjectRef.get(); if (GradleInstallationManager.getInstance().isGradleSdkHome(project, myGradleHomePathField.getText())) { myGradleHomeSettingType = LocationSettingType.EXPLICIT_CORRECT; } else { myGradleHomeSettingType = LocationSettingType.EXPLICIT_INCORRECT; myShowBalloonIfNecessary = true; } } showBalloonIfNecessary(); } else { myAlarm.cancelAllRequests(); } }