private static @Nullable Path getPlatformApiJar(String home) {
    Path libDir = Path.of(home, LIB_DIR_NAME);
    // in 173.* and earlier builds all IDEs included platform modules into openapi.jar
    // (see org.jetbrains.intellij.build.ProductModulesLayout.platformApiModules)
    // DO NOT change order of this list, first match must return JAR containing marker class for getRequiredJdkVersion()
    for (String name : List.of("app-client.jar", "app.jar", "platform-api.jar", "openapi.jar")) {
      Path result = libDir.resolve(name);
      if (Files.exists(result)) {
        return result;
      }
    }
    return null;
  }
private static @Nullable Path getPlatformApiJar(String home)