@ SuppressWarnings ( "unchecked" ) public < P extends DiagnosticsPlugin > P getPlugin ( Class < P > pluginClass ) { return ( P ) pluginsMap . get ( pluginClass ) ; }
Gets the plugin for a given plugin class . This method should be used if the plugin instance is required within some data - structure outside of the Diagnostics .