docs: private static boolean hasInnerOuterIndexExpression(String innerTableAlias,
                                                   Collection<AbstractExpression> indexExprs,
                                                   Collection<AbstractExpression> initialExpr,
                                                   Collection<AbstractExpression> endExprs)
      {
          HashSet<AbstractExpression> indexedExprs = new HashSet<>();
          indexedExprs.addAll(indexExprs);
          indexedExprs.addAll(initialExpr);
          indexedExprs.addAll(endExprs);
          // Find an outer TVE by ignoring any TVEs based on the inner table.
          for (AbstractExpression indexed : indexedExprs) {
              Collection<TupleValueExpression> indexedTVEs =
                      indexed.findAllTupleValueSubexpressions();
              for (AbstractExpression indexedTVExpr : indexedTVEs) {
                  if ( ! TupleValueExpression.isOperandDependentOnTable(indexedTVExpr, innerTableAlias)) {
                      return true;
                  }
              }
          }
          return false;
      }