@Override
  public int getLineEnd(int line, boolean includeNewline) {
    checkLineIndex(line);
    return myLineEnds[line] + (includeNewline && line != myLineEnds.length - 1 ? 1 : 0);
  }
@Override
  public int getLineEnd(int line, boolean includeNewline)