public boolean isPluginEnabled(Plugin plugin){
  if ((plugin != null) && (plugins.contains(plugin))) {
    return plugin.isEnabled();
  }
 else {
    return false;
  }
}

public boolean isPluginEnabled ( Plugin plugin ) { if ( ( plugin != null ) && ( plugins . contains ( plugin ) ) ) { return plugin . isEnabled ( ) ; } else { return false ; } }
checks if the given plugin is enabled or not
