code: private void initializeAppearanceNavigationPreference(
              @NonNull final PreferenceFragmentCompat fragment) {
          String key = getString(R.string.appearance_navigation_preference_key);
          NavigationPreference navigationPreference =
                  (NavigationPreference) fragment.findPreference(key);
          Bundle extras = new Bundle();
          extras.putBoolean(PreferenceFragment.EXTRA_SHOW_RESTORE_DEFAULTS_BUTTON, true);
          navigationPreference.setExtras(extras);
  
      }
docs: Initializes the navigation preference, which allows to navigate to the appearance settings.
  
  @param fragment
  The fragment, which contains the preference, as an instance of the class {@link
  PreferenceFragmentCompat}. The fragment may not be null