def METHOD_NAME(self, stream: "AbstractFileBasedStream") -> List[RemoteFile]:
    try:
        files = stream.list_files()
    except Exception as exc:
        raise CheckAvailabilityError(FileBasedSourceError.ERROR_LISTING_FILES, stream=stream.name) from exc
    if not files:
        raise CheckAvailabilityError(FileBasedSourceError.EMPTY_STREAM, stream=stream.name)
    return files