docs: @Override
      public boolean containsWithinBounds(Object value) {
          if (value instanceof Comparable) {
              final int result = compareTo(from, (Comparable) value);
              return result == 0 || result < 0 && compareTo(to, (Comparable) value) >= 0;
          }
          return contains(value);
      }