void (@NotNull AnActionEvent e) { myValueNode.calculateEvaluationExpression() .thenAsync(expr -> { return Promises.resolvedPromise(expr); }).onSuccess(expr -> { AppUIUtil.invokeOnEdt(() -> { XDebuggerWatchesManager manager = ((XDebuggerManagerImpl)XDebuggerManager.getInstance(mySession.getProject())).getWatchesManager(); manager.showInplaceEditor(myPosition, myEditor, mySession, expr); hideTextPopup(); }); }); }