void () { XExpression expression = getExpression(); myInplaceEditor.saveTextInHistory(); super.doOKAction(); if (!XDebuggerUtilImpl.isEmptyExpression(expression)) { XDebuggerWatchesManager watchesManager = ((XDebuggerManagerImpl)XDebuggerManager.getInstance(mySession.getProject())).getWatchesManager(); watchesManager.addInlineWatchExpression(expression, -1, myPresentationPosition, false); } }