@Override
  public boolean hasNext() {
    return !(myFoldRegion instanceof CustomFoldRegion) &&
           (mySegmentStartOffset == getCurrentFoldRegionStartOffset() || myFragmentIterator == null || myFragmentIterator.hasNext());
  }
@Override
  public boolean hasNext()