@Override
  public void initialize(IPreferenceStoreAccess preferenceStoreAccess) {
    this.preferenceStoreAccess = preferenceStoreAccess;

    IPreferenceStore preferenceStore = org.eclipse.jdt.ui.PreferenceConstants.getPreferenceStore();
    preferenceStore.addPropertyChangeListener(this);
    preferenceStoreAccess
        .getWritablePreferenceStore()
        .setDefault(
            PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION,
            preferenceStore.getBoolean(
                org.eclipse.jdt.ui.PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION));
  }
 @Override
 public void propertyChange(PropertyChangeEvent event) {
   if (preferenceStoreAccess == null) {
     return;
   }
   if (org.eclipse.jdt.ui.PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION.equalsIgnoreCase(
       event.getProperty())) {
     preferenceStoreAccess
         .getWritablePreferenceStore()
         .setValue(
             PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION,
             Boolean.valueOf(event.getNewValue().toString()));
   }
 }
 protected boolean isShowReturnTypes() {
   return preferenceStoreAccess
       .getPreferenceStore()
       .getBoolean(HideReturnTypesContribution.PREFERENCE_KEY);
 }