List<XExpression> () { XDebuggerTree tree = getTree(); XDebugSession session = getSession(tree); List<XExpression> expressions; if (session != null) { expressions = ((XDebugSessionImpl)session).getSessionData().getWatchExpressions(); } else { XDebuggerTreeNode root = tree.getRoot(); expressions = root instanceof WatchesRootNode ? ((WatchesRootNode)root).getWatchExpressions() : Collections.emptyList(); } return expressions; }