public void removeExternalRepository(@NotNull VirtualFile root) {
    REPO_LOCK.writeLock().lock();
    try {
      myExternalRepositories.remove(root);
      updatePathToRootMap();
    }
    finally {
      REPO_LOCK.writeLock().unlock();
    }
  }
public void removeExternalRepository(@NotNull VirtualFile root)