Point (@NotNull Point targetLocation, @NotNull ScrollType scrollType, @NotNull Rectangle viewRect) { return ApplicationManager.getApplication().getService(ScrollPositionCalculator.class) .calcOffsetsToScroll(mySupplier.getEditor(), targetLocation, scrollType, viewRect, mySupplier.getScrollPane()); }