public void rebuildTree(@NotNull TreeStateStrategy<?> treeStateStrategy) {
    TreeStateStrategy<?> oldTreeStateStrategy = myTreeStateStrategy;
    myTreeStateStrategy = treeStateStrategy;
    try {
      rebuildTree();
    }
    finally {
      myTreeStateStrategy = oldTreeStateStrategy;
    }
  }
public void rebuildTree(@NotNull TreeStateStrategy<?> treeStateStrategy)