private static void addParamToString(@NotNull StringBuilder stringLiteral, int index, boolean useFormatMethod) {
    if (useFormatMethod) {
      stringLiteral.append("{").append(index).append("}");
    }
    else {
      stringLiteral.append("%s");
    }
  }
private static void addParamToString(@NotNull StringBuilder stringLiteral, int index, boolean useFormatMethod)