default Ior<?,T> toIor(){
  if (this instanceof Ior)   return (Ior)this;
  final Optional<T> o=toOptional();
  return o.isPresent() ? Ior.primary(o.get()) : Ior.secondary(new NoSuchElementException());
}

default Ior < ? , T > toIor ( ) { if ( this instanceof Ior ) return ( Ior ) this ; final Optional < T > o = toOptional ( ) ; return o . isPresent ( ) ? Ior . primary ( o . get ( ) ) : Ior . secondary ( new NoSuchElementException ( ) ) ; }
return an ior that can be this object or a ior . primary or ior . secondary
