code: private Statement getSideEffects(Expression expr) {
      Expression sideEffectsExpr = extractSideEffects(expr);
      return sideEffectsExpr == null ? null : new ExpressionStatement(sideEffectsExpr);
    }
docs: Extracts side effects from the given expression and returns the statement
  to insert.