public boolean removeRepository(@NotNull VirtualFile root) {
    boolean removed;
    synchronized (myLock) {
      removed = myState.repositories.remove(root.getPath());
    }
    if (removed) myDispatcher.getMulticaster().onRepositoryRemoved(root);
    return removed;
  }
public boolean removeRepository(@NotNull VirtualFile root)