docs: private static boolean isUsefulPartitioningExpression(AbstractExpression expr) {
          if (expr instanceof ParameterValueExpression) {
              return true;
          }
          if (expr instanceof ConstantValueExpression) {
              return true;
          }
  
          return false;
      }