void (@NotNull KeyType selected, boolean processIfUnfocused) { if (!isHandleSelectionEnabled(selected, processIfUnfocused)) { hideHint(); return; } myKey = selected; Point location = createToolTipImage(myKey); if (location == null) { hideHint(); } else { Rectangle bounds = new Rectangle(location, myTipComponent.getPreferredSize()); myPopup.setTransparent(transparentPopup); myPopup.setBounds(bounds); myPopup.onAncestorFocusLost(() -> onFocusLost()); myPopup.setVisible(noIntersections(bounds)); repaintKeyItem(); } }