private Distribution getWrappedDistribution(File propertiesFile) {
    WrapperExecutor wrapper = WrapperExecutor.forWrapperPropertiesFile(propertiesFile);
    if (wrapper.getDistribution() != null) {
      return new ZippedDistribution(wrapper.getConfiguration(), Time.clock());
    }
    return getDownloadedDistribution(GradleVersion.current().getVersion());
  }
private Distribution getWrappedDistribution(File propertiesFile)