private void setElementOffsets() {
    if (myIterationState.atEnd()) return;

    myElementStartOffset = myIterationState.getStartOffset();

    if (myIterationState.getCurrentFold() == null) {
      setCharElement();
    }
    else {
      myElementEndOffset = myIterationState.getEndOffset();
      myLineBreak = false;
    }
  }
private void setElementOffsets()