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