boolean (@NotNull AWTEvent event) { final MouseEvent mouse = (MouseEvent)event; Rectangle bounds = getBoundsOnScreen(myContent); return bounds != null && bounds.contains(mouse.getLocationOnScreen()); }