public List<Statement> getStatements(ClosureExpression expr) {
    return getStatements((BlockStatement)expr.getCode());
  }
Returns the top-level statements in the specified closure definition.
If no such statements are found, an empty list is returned.

@param expr a ClosureExpression representing a closure definition
@return the top-level statements in the specified closure definition
spock-core/src/main/java/org/spockframework/util/inspector/AstInspector.java