void () { JBPopup hint = getDocInfoHint(); if (hint == null) { return; } myCloseOnSneeze = false; hint.cancel(); Component toFocus = SoftReference.dereference(myFocusedBeforePopup); hint.cancel(); if (toFocus != null) { IdeFocusManager.getInstance(myProject).requestFocus(toFocus, true); } }