private static boolean writeGradleProperties(@NotNull Properties properties, @NotNull Path propertiesFile) {
    try (BufferedWriter writer = Files.newBufferedWriter(propertiesFile, StandardCharsets.ISO_8859_1)) {
      properties.store(writer, null);
      return true;
    }
    catch (IOException e) {
      GradleLog.LOG.warn(
        String.format("I/O exception on writing Gradle properties into '%s'", propertiesFile.toAbsolutePath()), e);
    }
    return false;
  }
private static boolean writeGradleProperties(@NotNull Properties properties, @NotNull Path propertiesFile)