private static void writeMigrationResult(Path newConfigDir, String downloadIds, Logger log) {
    var resultFile = newConfigDir.resolve(MIGRATION_INSTALLED_PLUGINS_TXT);

    try {
      Files.writeString(resultFile, downloadIds);
    }
    catch (IOException e) {
      log.error("Unable to write auto install result", e);
    }
  }
private static void writeMigrationResult(Path newConfigDir, String downloadIds, Logger log)