void () { if (isDisposed() || !myProject.isOpen() || myStoreStateDisabled) return; Object root = myTree.getModel().getRoot(); if (root == null) return; TreeState state = TreeState.createOn(myTree, new TreePath(root)); if (myFileEditor != null) { myFileEditor.putUserData(STRUCTURE_VIEW_STATE_KEY, state); } ComponentUtil.putClientProperty(myTree, STRUCTURE_VIEW_STATE_RESTORED_KEY, null); }