@SuppressWarnings("unchecked")
  @Override
  public void visitTryCatchFinally(TryCatchStatement stat) {
    stat.setTryStatement(replace(stat.getTryStatement()));
    replaceAll(stat.getCatchStatements());
    stat.setFinallyStatement(replace(stat.getFinallyStatement()));
  }
Replaces the currently visited statement with the specified statement.
spock-core/src/main/java/org/spockframework/compiler/StatementReplacingVisitorSupport.java