private static @Nullable Component getViewportView(@NotNull JScrollPane pane) {
    JViewport viewport = pane.getViewport();
    if (viewport != null) {
      return viewport.getView();
    }
    return null;
  }
private static @Nullable Component getViewportView(@NotNull JScrollPane pane)