Runnable () { if (!isExtendedInfoEnabled()) return null; Rectangle bounds = ((TextFieldWithPopupHandlerUI)mySearchField.getUI()).getExtensionIconBounds(this); Point point = bounds.getLocation(); point.y += bounds.width + JBUIScale.scale(2); RelativePoint relativePoint = new RelativePoint(mySearchField, point); return () -> showPopup(relativePoint); }