void (@NotNull VcsEP extension, @NotNull PluginDescriptor pluginDescriptor) { AbstractVcs oldVcs; synchronized (myLock) { String name = extension.name; VcsEP oldEp = myExtensions.put(name, extension); if (oldEp != null) { LOG.error(String.format("registering duplicated EP. name: %s, old: %s, new: %s", name, oldEp.vcsClass, extension.vcsClass)); } oldVcs = myVcses.remove(name); if (oldVcs != null) { LOG.error(String.format("overriding VCS with EP. name: %s, old: %s, new: %s", name, oldVcs.getClass(), extension.vcsClass)); } } if (oldVcs != null) { unregisterVcs(oldVcs); } ProjectLevelVcsManagerImpl.getInstanceImpl(myProject).updateMappedVcsesImmediately(); }