code: @NonNull
      protected AbstractButtonBarDialog createDialog(
              @NonNull final AbstractButtonBarDialogBuilder<?, ?> dialogBuilder) {
          return ((MaterialDialog.Builder) dialogBuilder).create();
      }
docs: The method, which is invoked on subclasses when the preference's dialog is about to be
  created. The builder, which is passed as a method parameter may be manipulated by subclasses
  in order to change the appearance of the dialog. When views are inflated inside this method,
  the context of the builder should be used in order to ensure that the dialog's theme is
  used.
  
  @param dialogBuilder
  The builder, which is used to create the preference's dialog, as an instance of the
  class AbstractMaterialDialogBuilder
  @return The dialog, which has been created, as an instance of the class
  AbstractButtonBarDialog. The dialog may not be null