if (stackFrame != null) {
cancelClear();
buildTreeAndRestoreState(stackFrame);
}
else {
<BUG>requestClear(session);
}</BUG>
}
@Override
<BUG>protected void clear(@Nullable XDebugSession session) {
XDebuggerTree tree = getTree();</BUG>
tree.getProject().putUserData(DEBUG_VARIABLES, null);

if (stackFrame != null) {
cancelClear();
buildTreeAndRestoreState(stackFrame);
}
else {
requestClear();
}
}
@Override
protected void clear() {
XDebuggerTree tree = getTree();
tree.getProject().putUserData(DEBUG_VARIABLES, null);
