private void switchHierarchy() {
      TreePath path = myHierarchyTree.getLeadSelectionPath();
      if (path == null) return;
      HierarchyTree.ComponentNode node = ObjectUtils.tryCast(path.getLastPathComponent(), HierarchyTree.ComponentNode.class);
      if (node == null) return;
      Component c = node.getComponent();
      if (c == null) return;

      Component selected = ContainerUtil.getFirstItem(myComponents);
      isAccessibleEnable = !isAccessibleEnable;
      myNavBarPanel.setAccessibleEnabled(isAccessibleEnable);
      myHierarchyTree.resetModel(c, isAccessibleEnable);
      TreeUtil.expandAll(myHierarchyTree);
      if (selected != null) {
        myHierarchyTree.selectPath(selected, isAccessibleEnable);
      }
    }
private void switchHierarchy()