private static boolean isJava21Preview() {
    try {
      return Boolean.parseBoolean(System.getProperty(LAUNCHER_USE_JDK_21_PREVIEW));
    }
    catch (Throwable e) {
      return false;
    }
  }
private static boolean isJava21Preview()