void (final LightweightHint hint, final Editor editor, Point p, HintHint hintInfo, boolean updateSize) { if (ApplicationManager.getApplication().isUnitTestMode()) return; JComponent externalComponent = getExternalComponent(editor); p = adjustHintPosition(p, updateSize, externalComponent, hint, hintInfo); if(hint.isShouldBeReopen()){ hint.hide(true); } if (hint.isVisible()) { if (updateSize) { hint.pack(); } hint.updatePosition(hintInfo.getPreferredPosition()); hint.updateLocation(p.x, p.y); } else { hint.show(externalComponent, p.x, p.y, editor.getContentComponent(), hintInfo); } hint.putUserData(LAST_HINT_ON_EDITOR_Y_POSITION, hint.getLocationOn(editor.getComponent()).y); }