private void appendDependentPluginKeys ( String pluginKey , Set < String > appendTo ) { for ( PluginInfo otherPlugin : getPluginInfos ( ) ) { if ( ! otherPlugin . getKey ( ) . equals ( pluginKey ) ) { for ( PluginInfo . RequiredPlugin requirement : otherPlugin . getRequiredPlugins ( ) ) { if ( requirement . getKey ( ) . equals ( pluginKey ) ) { appendTo . add ( otherPlugin . getKey ( ) ) ; appendDependentPluginKeys ( otherPlugin . getKey ( ) , appendTo ) ; } } } } }
Appends dependent plugins only the ones that still exist in the plugins folder .