docs: public static boolean containsAggregateExpression(AbstractExpression expr) {
          AbstractExpression.SubexprFinderPredicate pred =
                  new AbstractExpression.SubexprFinderPredicate() {
              @Override
              public boolean matches(AbstractExpression expr) {
                  return expr.getExpressionType().isAggregateExpression();
              }
          };
          return expr.hasAnySubexpressionWithPredicate(pred);
      }