docs: public static IPreferenceStore getPluginPreferences(@CheckForNull IProject project) {
          if (project == null || !isProjectSettingsEnabled(project)) {
              // read workspace (user) settings from instance area
              return new ScopedPreferenceStore(new InstanceScope(), FindbugsPlugin.PLUGIN_ID);
          }
  
          // use project settings
          return new ScopedPreferenceStore(new ProjectScope(project), FindbugsPlugin.PLUGIN_ID);
      }