public void doWhenDone(AnActionEvent e) {
    Project project = e.getProject();
    if (project != null) {
      if (DebuggerUIUtil.isInDetachedTree(e)) {
        XDebuggerTree tree = XDebuggerTree.getTree(e);
        if (tree != null) {
          tree.rebuildAndRestore(XDebuggerTreeState.saveState(tree));
        }
      }
      XDebugSession session = DebuggerUIUtil.getSession(e);
      if (session != null) {
        session.rebuildViews();
      }
    }
  }
public void doWhenDone(AnActionEvent e)