public static boolean canBePreprocessed(@NotNull MouseEvent e) {
    Component component = UIUtil.getDeepestComponentAt(e.getComponent(), e.getX(), e.getY());
    if (component == null) {
      return true;
    }

    if (e.getID() != MouseEvent.MOUSE_DRAGGED) {
      JBPopupFactory popupFactory = ApplicationManager.getApplication().getServiceIfCreated(JBPopupFactory.class);
      if (popupFactory != null && popupFactory.getParentBalloonFor(component) != null) {
        return false;
      }
    }

    if (component instanceof IdeGlassPane.TopComponent) {
      return ((IdeGlassPane.TopComponent)component).canBePreprocessed(e);
    }

    return true;
  }
public static boolean canBePreprocessed(@NotNull MouseEvent e)