void () { var distributionType = GradleEnvironment.Headless.GRADLE_DISTRIBUTION_TYPE; if (distributionType != null) { myDistributionType = DistributionType.valueOf(distributionType); } var gradleHome = GradleEnvironment.Headless.GRADLE_HOME; if (gradleHome != null) { myGradleHome = gradleHome; } }