void () { getProjectTreeStructure().setProviders(new ClassesTreeStructureProvider(myProject), new FormMergerTreeStructureProvider(myProject)); AbstractProjectViewPane pane = myStructure.createPane(); JTree tree = pane.getTree(); PlatformTestUtil.assertTreeEqual(tree, myExpectedTree, true); TreeState treeState = TreeState.createOn(tree); doTestState(treeState); Element stored = new Element("Root"); treeState.writeExternal(stored); TreeState readState = TreeState.createFrom(stored); doTestState(readState); }