JBPopup (XFullValueEvaluator evaluator, Runnable afterEvaluation, Runnable hideTextPopupRunnable) { ComponentPopupBuilder builder = DebuggerUIUtil.createTextViewerPopupBuilder(myContent, myTextViewer, evaluator, myProject, afterEvaluation, hideTextPopupRunnable); return builder.setCancelKeyEnabled(false) .setRequestFocus(true) .setKeyEventHandler(event -> { if (mySetValueModeEnabled) { return false; } if (AbstractPopup.isCloseRequest(event)) { if (myPopup != null) { myPopup.cancel(); return true; } } return false; }).createPopup(); }