/**
  * Enables or disables a FindBugs plugin.
  *
  * @param plugins
  * @param enabled
  */
 protected void enablePlugins(String pluginId, boolean enabled) {
   Plugin plugin = Plugin.getByPluginId(pluginId);
   if (plugin != null) {
     if (!enabled && plugin.cannotDisable()) {
       fail(
           "Cannot disable plugin: " + plugin.getPluginId() + '\n' + plugin.getShortDescription());
     } else {
       plugin.setGloballyEnabled(enabled);
     }
   }
 }