code: public static void confirm(String message, String title, String responseId, IConfirmCallback callback) {
          prompt(message, title, STYLES_QUESTION, LABEL_IDS_OK_CANCEL, LABEL_ID_CANCEL, null, responseId, (response) -> {
              IResponseCallback.invoke(callback, response != null && response.isOk());
          }
docs: Present a confirmation (OK/Cancel) dialog with the specified prompt and return the user
  response.
  
  @param message Prompt to present to the user.
  @param title Caption of prompt dialog.
  @param responseId Optional response id if user response is to be cached. If null, the
  response will not be cached. If specified, the response is cached and the user is
  not prompted again.
  @param callback Callback to receive dialog response.