private int translatedViaDiff(@NotNull DocumentEventImpl e, int line) throws FilesTooBigForDiffException {
    line = e.translateLineViaDiff(line);
    if (line < 0 || line >= getDocument().getLineCount()) {
      invalidate();
    }
    else {
      DocumentEx document = getDocument();
      setRange(TextRangeScalarUtil.toScalarRange(document.getLineStartOffset(line), document.getLineEndOffset(line)));
    }
    return line;
  }
private int translatedViaDiff(@NotNull DocumentEventImpl e, int line)