@RequiresReadLock
  public @Nullable ExternalProjectsViewState getState() {
    if (myStructure != null) {
      try {
        myState.treeState = new Element("root");
        TreeState.createOn(myTree).writeExternal(myState.treeState);
      }
      catch (WriteExternalException e) {
        LOG.warn(e);
      }
    }
    return myState;
  }
@RequiresReadLock
  public @Nullable ExternalProjectsViewState getState()