def METHOD_NAME(self, pattern: str):
    files = set()
    for res in itertools.chain.from_iterable(p.METHOD_NAME(pattern) for p in self._paths):
        if res.is_file() and res.name in files:
            continue
        files.add(res.name)
        yield res