private static void restart(List<String> args) {
    if (Restarter.isSupported()) {
      try {
        Restarter.setMainAppArgs(args);
        Restarter.scheduleRestart(false);
      }
      catch (IOException e) {
        StartupErrorReporter.showError(BootstrapBundle.message("restart.failed.title"), e);
      }
      System.exit(0);
    }
    else {
      String title = BootstrapBundle.message("import.settings.title", ApplicationNamesInfo.getInstance().getFullProductName());
      String message = BootstrapBundle.message("import.settings.restart");
      String yes = BootstrapBundle.message("import.settings.restart.now"), no = BootstrapBundle.message("import.settings.restart.later");
      if (Messages.showYesNoDialog(message, title, yes, no, Messages.getQuestionIcon()) == Messages.YES) {
        System.exit(0);
      }
    }
  }
private static void restart(List<String> args)