Enumeration<TreePath> expanded = tree.getExpandedDescendants(new TreePath(rootNode.getPath()));
if (expanded != null) {
while (expanded.hasMoreElements()) {
final TreePath treePath = expanded.nextElement();
final InspectionConfigTreeNode node = (InspectionConfigTreeNode)treePath.getLastPathComponent();
<BUG>final Descriptor descriptor = node.getDesriptor();
myExpandedNodes.add(getState(node, descriptor));
}</BUG>
}
setSelectionPaths(tree.getSelectionPaths());

Enumeration<TreePath> expanded = tree.getExpandedDescendants(new TreePath(rootNode.getPath()));
if (expanded != null) {
while (expanded.hasMoreElements()) {
final TreePath treePath = expanded.nextElement();
final InspectionConfigTreeNode node = (InspectionConfigTreeNode)treePath.getLastPathComponent();
myExpandedNodes.add(getState(node));
}
}
setSelectionPaths(tree.getSelectionPaths());
