How about `return stmt && (isa<>(stmt) || ...)`, and then we can remove the lines from 60 to 63.