boolean () { if (myCaretPosition == null) return false; LogicalPosition position = getSide().select(myCaretPosition); getEditor().getCaretModel().moveToLogicalPosition(position); if (myEditorsPosition != null && myEditorsPosition.isSame(position)) { DiffUtil.scrollToPoint(getEditor(), myEditorsPosition.myPoints[0], false); } else { DiffUtil.scrollToCaret(getEditor(), false); } return true; }