void (AWTEvent event) { if (event.getID() == MouseEvent.MOUSE_MOVED) { preventFromHideIfInsideTooltip(event); } else if (event.getID() == MouseEvent.MOUSE_PRESSED || event.getID() == MouseEvent.MOUSE_RELEASED) { hideTooltipIfCloseClick((MouseEvent)event); } else if (event instanceof KeyEvent) { tryToShowTooltipIfRequested((KeyEvent)event); } }