public List<Statement> getStatements(MethodNode node) {
    return getStatements((BlockStatement)node.getCode());
  }
Returns the top-level statements in the specified method or constructor.
If no such statements are found, an empty
list is returned.

@param node a MethodNode representing a method or constructor
@return the top-level statements in the specified method or constructor
spock-core/src/main/java/org/spockframework/util/inspector/AstInspector.java