void () { DocumentUtil.executeInBulk(DocumentImpl.this, finalTargetOffsetPos > STRIP_TRAILING_SPACES_BULK_MODE_LINES_LIMIT * 2, () -> { int pos = finalTargetOffsetPos; while (pos > 0) { int endOffset = targetOffsets[--pos]; int startOffset = targetOffsets[--pos]; deleteString(startOffset, endOffset); } }); }