File (String gradleCachedFolderName) { Path pathToGradleWrapper = StartParameter.DEFAULT_GRADLE_USER_HOME.toPath().resolve("wrapper/dists/" + gradleCachedFolderName); File gradleWrapperFile = pathToGradleWrapper.toFile(); if (gradleWrapperFile.exists()) { return gradleWrapperFile; } return null; }