If you have a Stmt * that corresponds to the return statement in your
example, you can use the `getParents()` method from `ASTContext` to get the
list of its parents. Then you can check whether the `if` has a body with
braces by iterating over the parents until you find the `if`, and checking
if the `if`s body is a CompoundStmt.