private void initProjectsTree() {
    initLock.lock();
    try {
      if (projectsTreeInitialized.getAndSet(true)) return;

      if (!PlatformProjectOpenProcessor.Companion.isNewProject(myProject)) {
        loadTree();
      }

      if (myProjectsTree == null) {
        myProjectsTree = new MavenProjectsTree(myProject);
        applyStateToTree(myProjectsTree, this);
      }

      myProjectsTree.addListener(myProjectsTreeDispatcher.getMulticaster(), this);
    }
    finally {
      initLock.unlock();
    }
  }
private void initProjectsTree()