@ Override public List < PluginWrapper > getPlugins ( PluginState pluginState ) { List < PluginWrapper > plugins = new ArrayList <> ( ) ; for ( PluginWrapper plugin : getPlugins ( ) ) { if ( pluginState . equals ( plugin . getPluginState ( ) ) ) { plugins . add ( plugin ) ; } } return plugins ; }
Returns a copy of plugins with that state .