Rectangle (@NotNull Editor editor) { ScrollingModel model = editor.getScrollingModel(); return EditorCoreUtil.isTrueSmoothScrollingEnabled() ? model.getVisibleAreaOnScrollingFinished() : model.getVisibleArea(); }