Configurable method to find registered types in ServiceLocatorExtensions