docs: public static <E extends Comparable<E>> Interval<E> toInterval(E a, E b, int flags) {
      int comp = a.compareTo(b);
      if (comp <= 0) {
        return new Interval(a,b, flags);
      } else {
        return null;
      }
    }