private static void runRestarter(List<String> command) throws IOException {
    Logger.getInstance(Restarter.class).info("run restarter: " + command);

    var processBuilder = new ProcessBuilder(command);
    processBuilder.directory(Path.of(SystemProperties.getUserHome()).toFile());
    processBuilder.environment().put("IJ_RESTARTER_LOG", PathManager.getLogDir().resolve("restarter.log").toString());

    if (SystemInfo.isUnix && !SystemInfo.isMac) setDesktopStartupId(processBuilder);

    if (SystemInfo.isWindows) processBuilder.environment().remove("IJ_LAUNCHER_DEBUG");

    processBuilder.start();
  }
private static void runRestarter(List<String> command)