public List<Statement> getScriptStatements() {
    return getStatements(module.getStatementBlock());
  }
Returns the top-level statements in a script. If no such statements are
found, an empty list is returned.

@return the top-level statements in a script
spock-core/src/main/java/org/spockframework/util/inspector/AstInspector.java