code: private Preference.OnPreferenceChangeListener createShowDialogButtonBarDividerListener() {
          return new Preference.OnPreferenceChangeListener() {
  
              @Override
              public boolean onPreferenceChange(final Preference preference, final Object newValue) {
                  boolean showDialogButtonBarDivider = (Boolean) newValue;
                  dialogPreference.showDialogButtonBarDivider(showDialogButtonBarDivider);
                  editTextPreference.showDialogButtonBarDivider(showDialogButtonBarDivider);
                  listPreference.showDialogButtonBarDivider(showDialogButtonBarDivider);
                  multiChoiceListPreference.showDialogButtonBarDivider(showDialogButtonBarDivider);
                  seekBarPreference.showDialogButtonBarDivider(showDialogButtonBarDivider);
                  numberPickerPreference.showDialogButtonBarDivider(showDialogButtonBarDivider);
                  digitPickerPreference.showDialogButtonBarDivider(showDialogButtonBarDivider);
                  resolutionPreference.showDialogButtonBarDivider(showDialogButtonBarDivider);
                  colorPalettePreference.showDialogButtonBarDivider(showDialogButtonBarDivider);
                  return true;
              }
  
          };
      }
docs: Creates and returns a listener, which allows to adapt, whether the button bar dividers of the
  preference's dialogs should be shown, or not, when the corresponding setting has been
  changed.
  
  @return The listener, which has been created, as an instance of the type {@link
  Preference.OnPreferenceChangeListener}