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