IDEA-118696 Replace with regex: IOOBE at SegmentArray.findSegmentIndex()