private void updatePanes(boolean withComparator) {
    for (AbstractProjectViewPane pane : idToPane.values()) {
      JTree tree = pane.getTree();
      if (tree != null) {
        SelectionInfo info = pane.getId().equals(currentViewId) ? SelectionInfo.create(pane) : null;
        if (withComparator) {
          pane.installComparator();
        }
        pane.updateFromRoot(false);
        if (info != null) {
          info.apply(pane);
        }
      }
    }
    if (withComparator) {
      // sort nodes in the BookmarksView
      project.getMessageBus().syncPublisher(BookmarksListener.TOPIC).structureChanged(null);
    }
  }
private void updatePanes(boolean withComparator)