docs: private static String format(String message, Object... messageArgs) {
      StringBuilder sb = new StringBuilder(message.length() + 8 * messageArgs.length);
      int templateStart = 0;
      for (Object argument : messageArgs) {
        int placeholderStart = message.indexOf("%s", templateStart);
        if (placeholderStart == -1) {
          break;
        }
        sb.append(message.substring(templateStart, placeholderStart));
        sb.append(argument);
        templateStart = placeholderStart + 2;
      }
      sb.append(message.substring(templateStart));
      return sb.toString();
    }