@SuppressWarnings("unchecked")
  public static List<Statement> getStatements(ClosureExpression closure) {
    BlockStatement blockStat = (BlockStatement)closure.getCode();
    return blockStat == null ?
        emptyList() : // it's not possible to add any statements to such a ClosureExpression, so immutable list is OK
        blockStat.getStatements();
  }
Returns a list of statements of the given method. Modifications to the returned list
will affect the method's statements.

@param method a method (node)
@return a list of statements of the given method
spock-core/src/main/java/org/spockframework/compiler/AstUtil.java