protected void replaceVisitedStatementWith(Statement other) {
    replacement = other;
  }
Replaces the currently visited statement with the specified statement.
spock-core/src/main/java/org/spockframework/compiler/StatementReplacingVisitorSupport.java