code: public static String printErrorMessage(String format, String errorMessage, int errorIndex,
                                             InputBuffer inputBuffer) {
          checkArgNotNull(inputBuffer, "inputBuffer");
          return printErrorMessage(format, errorMessage, errorIndex, errorIndex + 1, inputBuffer);
      }
docs: Prints an error message showing a location in the given InputBuffer.
  
  @param format       the format string, must include three placeholders for a string
  (the error message) and two integers (the error line / column respectively)
  @param errorMessage the error message
  @param errorIndex   the error location as an index into the inputBuffer
  @param inputBuffer  the underlying InputBuffer
  @return the error message including the relevant line from the underlying input plus location indicator