@Override
    public void sessionPaused() {
      ApplicationManager.getApplication().invokeLater(() -> {
        XDebuggerTreeState state = myTreeState;
        InstancesTree tree = getInstancesTree();
        if (state == null) {
          tree.rebuildTree(InstancesTree.RebuildPolicy.RELOAD_INSTANCES);
        }
        else {
          tree.rebuildTree(InstancesTree.RebuildPolicy.RELOAD_INSTANCES, state);
        }
      });
    }
@Override
    public void sessionPaused()