private static boolean isOverlappingScrollBar(JScrollPane scrollPane) {
      return (scrollPane instanceof JBScrollPane) && ((JBScrollPane)scrollPane).isOverlappingScrollBar();
    }
private static boolean isOverlappingScrollBar(JScrollPane scrollPane)