code: protected final Statement wrapBlock(Statement statement) {
          BlockStatement stmt = new BlockStatement();
          stmt.addStatement(createInterruptStatement());
          stmt.addStatement(statement);
          return stmt;
      }
docs: Takes a statement and wraps it into a block statement which first element is the interruption check statement.
  
  @param statement the statement to be wrapped
  @return a {@link BlockStatement block statement}   which first element is for checking interruption, and the
  second one the statement to be wrapped.