private static void runCommand(GeneralCommandLine command) throws ExecutionException, OSFileAssociationException {
    var output = new CapturingProcessHandler(command).runProcess(1000);
    if (output.isTimeout()) {
      throw new OSFileAssociationException("Failed to run " + command.getExePath() + " in 1 sec");
    }
    String errorMessage = output.getStderr();
    if (!errorMessage.isBlank()) {
      throw new OSFileAssociationException(command.getExePath() + ": " + errorMessage);
    }
  }
private static void runCommand(GeneralCommandLine command)