docs: public static void runShellCommand(String[] cmd,
                                       StringBuilder outputLines,
                                       StringBuilder errorLines)
      throws IOException {
      Process p = Runtime.getRuntime().exec(cmd);
      if (outputLines != null) {
        BufferedReader in =
          new BufferedReader(new InputStreamReader(p.getInputStream()));
        String line;
        while ((line = in.readLine()) != null) {
          outputLines.append(line);
        }
      }
      if (errorLines != null) {
        BufferedReader err =
          new BufferedReader(new InputStreamReader(p.getErrorStream()));
        String line;
        while ((line = err.readLine()) != null) {
          errorLines.append(line);
        }
      }
    }