void () { List<XExpression> watchExpressions = myRootNode.getWatchExpressions(); XDebugSession session = getSession(getTree()); XDebugSessionData data = (session != null) ? ((XDebugSessionImpl)session).getSessionData() : getData(XDebugSessionData.DATA_KEY, getTree()); if (data != null) { data.setWatchExpressions(watchExpressions); getWatchesManager().setWatches(data.getConfigurationName(), watchExpressions); } }