@VisibleForTesting
  public static @NotNull String getPrebuiltSkeletonsName(int generatorVersion,
                                                         @NotNull @NonNls String versionString,
                                                         boolean withMinorVersion,
                                                         boolean withExtension) {

    String version = StringUtil.toLowerCase(versionString).replace(" ", "-");
    if (!withMinorVersion) {
      int ind = version.lastIndexOf(".");
      if (ind != -1) {
        // strip last version
        version = version.substring(0, ind);
      }
    }

    if (SystemInfo.isMac) {
      String osVersion = SystemInfo.OS_VERSION;
      int dot = osVersion.indexOf('.');
      if (dot >= 0) {
        int secondDot = osVersion.indexOf('.', dot + 1);
        if (secondDot >= 0) {
          osVersion = osVersion.substring(0, secondDot);
        }
      }
      return "skeletons-mac-" + generatorVersion + "-" + osVersion + "-" + version + (withExtension ? ".zip" : "");
    }
    else {
      String os = SystemInfo.isWindows ? "win" : "nix";
      return "skeletons-" + os + "-" + generatorVersion + "-" + version + (withExtension ? ".zip" : "");
    }
  }
@VisibleForTesting
  public static @NotNull String getPrebuiltSkeletonsName(int generatorVersion,
                                                         @NotNull @NonNls String versionString,
                                                         boolean withMinorVersion,
                                                         boolean withExtension)