def METHOD_NAME(self, layer_type: Type[Layer]):
    for factory in get_layer_factories():
        if factory.supports(layer_type):
            return factory
    raise MapRenderError(
        'Could not find a layer factory for %r' % layer_type.__name__
    )