boolean (@NotNull MouseEvent e, boolean isFinalCheck) { if (!myIgnoreMouseEventsConsecutiveToInitial) { myInitialMouseEvent = null; return false; } if (myInitialMouseEvent != null && (e.getComponent() != myInitialMouseEvent.getComponent() || !e.getPoint().equals(myInitialMouseEvent.getPoint()))) { myIgnoreMouseEventsConsecutiveToInitial = false; myInitialMouseEvent = null; return false; } if (isFinalCheck) { myIgnoreMouseEventsConsecutiveToInitial = false; myInitialMouseEvent = null; } e.consume(); return true; }