docs: public static Set<AbstractExpression> collectTerminals(AbstractExpression expr) {
          final Set<AbstractExpression> result = new HashSet<>();
          collectTerminals(expr, result);
          return result;
      }