void () { int nextWrapOffset = getNextSoftWrapOffset(); offset = getNextVisualLineStartOffset(nextWrapOffset); if (offset == Integer.MAX_VALUE) { offset = -1; } else if (offset == nextWrapOffset) { softWrap++; } visualLine++; while (foldRegion < myFoldRegions.length && myFoldRegions[foldRegion].getStartOffset() < offset) foldRegion++; }