def METHOD_NAME(self) -> Generator[tuple[int, int, str, type[Any]], None, None]:
    visitor = SentryVisitor(self.filename)
    visitor.visit(self.tree)
    for e in visitor.errors:
        yield (*e, type(self))