docs: public static boolean hasSideEffect(ExpressionTree expression) {
      if (expression == null) {
        return false;
      }
      SideEffectAnalysis analyzer = new SideEffectAnalysis();
      expression.accept(analyzer, null);
      return analyzer.hasSideEffect;
    }