@Override
    public void extensionRemoved(@NotNull VcsEP extension, @NotNull PluginDescriptor pluginDescriptor) {
      AbstractVcs oldVcs;
      synchronized (myLock) {
        String name = extension.name;
        oldVcs = myVcses.get(name);
        if (oldVcs != null) {
          myVcses.remove(name);
        }

        boolean wasRemoved = myExtensions.remove(name, extension);
        if (!wasRemoved) {
          LOG.error(String.format("removing unregistered EP. name: %s, ep: %s", name, extension.vcsClass));
        }
      }
      if (oldVcs != null) {
        unregisterVcs(oldVcs);
      }
      ProjectLevelVcsManagerImpl.getInstanceImpl(myProject).updateMappedVcsesImmediately();
    }
@Override
    public void extensionRemoved(@NotNull VcsEP extension, @NotNull PluginDescriptor pluginDescriptor)