private static boolean doVerticalDiagramScrolling(@Nullable Component component, @NotNull MouseEvent event) {
    if (component != null && event instanceof MouseWheelEvent mwe && isDiagramViewComponent(component.getParent())) {
      if (!mwe.isShiftDown() && mwe.getScrollType() == MouseWheelEvent.WHEEL_UNIT_SCROLL && JBScrollPane.isScrollEvent(mwe)) {
        JScrollBar scrollBar = findVerticalScrollBar(component);
        if (scrollBar != null) {
          scrollBar.setValue(scrollBar.getValue() + getScrollAmount(mwe, scrollBar));
          return true;
        }
      }
    }
    return false;
  }
private static boolean doVerticalDiagramScrolling(@Nullable Component component, @NotNull MouseEvent event)