void (@NotNull DiffRequest request) { LogicalPosition[] carets = getCaretPositions(); EditorsVisiblePositions visiblePositions = getVisiblePositions(); request.putUserData(DiffUserDataKeysEx.SCROLL_TO_CHANGE, null); request.putUserData(EditorsVisiblePositions.KEY, visiblePositions); request.putUserData(DiffUserDataKeysEx.EDITORS_CARET_POSITION, carets); }