def METHOD_NAME(paths: list[str]) -> None:
    from litestar.cli._utils import AUTODISCOVERY_FILE_NAMES
    old_paths = AUTODISCOVERY_FILE_NAMES[::]
    AUTODISCOVERY_FILE_NAMES[:] = paths
    def finalizer() -> None:
        AUTODISCOVERY_FILE_NAMES[:] = old_paths
    request.addfinalizer(finalizer)