void () { myEditor.putUserData(PopupFactoryImpl.ANCHOR_POPUP_POSITION, myPosition); try { popup.setLocation(popup.getBestPositionFor(myEditor)); } finally { myEditor.putUserData(PopupFactoryImpl.ANCHOR_POPUP_POSITION, null); } }