Use dependency injection for displayPluginManager
Use displayPluginManager function instead of class member