void (@NotNull GradleSettings settings) { if (myServiceDirectoryPathField != null) { String serviceDirectoryPath = trimIfPossible(myServiceDirectoryPathField.getLocalPath()); settings.setServiceDirectoryPath(ExternalSystemApiUtil.normalizePath(serviceDirectoryPath)); } if (myGradleVmOptionsField != null) { settings.setGradleVmOptions(trimIfPossible(myGradleVmOptionsField.getText())); } if (myGenerateImlFilesCheckBox != null) { settings.setStoreProjectFilesExternally(!myGenerateImlFilesCheckBox.isSelected()); } if (myParallelModelFetchCheckBox != null) { settings.setParallelModelFetch(myParallelModelFetchCheckBox.isSelected()); } myDefaultProjectSettingsControl.apply(); }