docs: private boolean attemptDateRangeOptimization(And and, Retrieve retrieve, String alias) {
          if (retrieve.getDateProperty() != null || retrieve.getDateRange() != null) {
              return false;
          }
  
          for (int i = 0; i < and.getOperand().size(); i++) {
              Expression operand = and.getOperand().get(i);
              if ((operand instanceof IncludedIn || operand instanceof In) && attemptDateRangeOptimization((BinaryExpression) operand, retrieve, alias)) {
                  // Replace optimized part in And with true -- to be optimized out later
                  and.getOperand().set(i, libraryBuilder.createLiteral(true));
                  return true;
              } else if (operand instanceof And && attemptDateRangeOptimization((And) operand, retrieve, alias)) {
                  return true;
              }
          }
  
          return false;
      }