docs: @SuppressWarnings("unchecked")
      @CheckForNull
      public <P extends Plugin> P getPlugin(Class<P> clazz) {
          PluginWrapper p = pluginManager.getPlugin(clazz);
          if(p==null)     return null;
          return (P) p.getPlugin();
      }