static Iterator toByteIterator(O o) { if (o == null) null; if (o cast Iterator) ret o; if (o cast Iterable) ret iterator(o); if (o cast byte[]) ret iterator(wrapPrimitiveArrayAsImmutableList(o)); fail(); }