private static File determineRealUserHomeDir(ConnectionParameters connectionParameters) {
      File distributionBaseDir = connectionParameters.getDistributionBaseDir();
      if (distributionBaseDir != null) {
        return distributionBaseDir;
      }
      else {
        File userHomeDir = connectionParameters.getGradleUserHomeDir();
        return userHomeDir != null ? userHomeDir : GradleUserHomeLookup.gradleUserHome();
      }
    }
private static File determineRealUserHomeDir(ConnectionParameters connectionParameters)