code: @NonNull
      private OnPreferenceClickListener createOnPreferenceClickListenerWrapper(
              @Nullable final OnPreferenceClickListener listener) {
          return new OnPreferenceClickListener() {
  
              @Override
              public boolean onPreferenceClick(final Preference preference) {
                  notifyOnShowFragment();
  
                  if (listener != null) {
                      listener.onPreferenceClick(preference);
                  }
  
                  return true;
              }
  
          };
      }
docs: Creates a click listener, which notifies the callback, when the preference's fragment should
  be shown and forwards the click event to an encapsulated listener.
  
  @param listener
  The listener, which should be encapsulated, as an instance of the type {@link
  OnPreferenceClickListener} or null, if no listener should be encapsulated
  @return The listener, which has been created, as an instance of the type {@link
  OnPreferenceClickListener}. The listener may not be null