private void doScrollToChange(@NotNull SimpleDiffChange change, final boolean animated) {
    final int line1 = change.getStartLine(Side.LEFT);
    final int line2 = change.getStartLine(Side.RIGHT);
    final int endLine1 = change.getEndLine(Side.LEFT);
    final int endLine2 = change.getEndLine(Side.RIGHT);

    DiffUtil.moveCaret(getEditor1(), line1);
    DiffUtil.moveCaret(getEditor2(), line2);

    if (ClientId.isCurrentlyUnderLocalId()) {
      getSyncScrollSupport().makeVisible(getCurrentSide(), line1, endLine1, line2, endLine2, animated);
    }
    else {
      getCurrentEditor().getScrollingModel().scrollToCaret(ScrollType.CENTER);
    }
  }
private void doScrollToChange(@NotNull SimpleDiffChange change, final boolean animated)