@Nullable
  public static GradleVersion parseDistributionVersion(@NotNull String path) {
    path = StringUtil.substringAfterLast(path, "/");
    if (path == null) return null;

    path = StringUtil.substringAfterLast(path, "gradle-");
    if (path == null) return null;

    int i = path.lastIndexOf('-');
    if (i <= 0) return null;

    return getGradleVersionSafe(path.substring(0, i));
  }
@Nullable
  public static GradleVersion parseDistributionVersion(@NotNull String path)