void (@NotNull AnActionEvent e) { ThreeSide currentSide = getCurrentSide(); ThreeSide targetSide = currentSide.select(ThreeSide.BASE, ThreeSide.RIGHT, ThreeSide.LEFT); // cycle right EditorEx targetEditor = getEditor(targetSide); if (myScrollToPosition) { LogicalPosition currentPosition = DiffUtil.getCaretPosition(getCurrentEditor()); LogicalPosition position = transferPosition(currentSide, targetSide, currentPosition); targetEditor.getCaretModel().moveToLogicalPosition(position); } setCurrentSide(targetSide); targetEditor.getScrollingModel().scrollToCaret(ScrollType.MAKE_VISIBLE); DiffUtil.requestFocus(getProject(), getPreferredFocusedComponent()); }