def METHOD_NAME(decorator: Type[HTTPRouteHandler]) -> None:
    @decorator(["/path-one", "/path-one/{param:str}"], name="handler")  # type: ignore
    def handler() -> None:
        return None
    @decorator(["/path-two"], name="handler-two")  # type: ignore
    def handler_two() -> None:
        return None
    router = Router("router-one/", route_handlers=[handler_two])
    router_two = Router("router-two/", route_handlers=[handler_two])
    app = Litestar(route_handlers=[router, router_two, handler])
    handler_index = app.get_handler_index_by_name("handler")
    assert handler_index
    assert handler_index["paths"] == ["/path-one", "/path-one/{param:str}"]
    assert str(handler_index["handler"]) == str(handler)
    handler_index = app.get_handler_index_by_name("handler-two")
    assert handler_index
    assert handler_index["paths"] == ["/router-one/path-two", "/router-two/path-two"]
    assert str(handler_index["handler"]) == str(handler_two)