It's inconvenient to cast result of indexOf from long to int. I think developers usually work with streams which contains less than 2^31 elements. So it would be great to have a variant of this method which returns OptionalInt or even int as List::indexOf does.