void (@NotNull AbstractVcs vcs) { synchronized (myLock) { String name = vcs.getName(); if (myVcses.containsKey(name)) { LOG.error(String.format("vcs is already registered: %s", vcs), new Throwable()); return; } if (myExtensions.containsKey(name)) { LOG.error(String.format("can't override vcs from EP. vcs: %s, ep: %s", vcs, myExtensions.get(name).vcsClass), new Throwable()); return; } myVcses.put(name, vcs); } registerVcs(vcs); ProjectLevelVcsManagerImpl.getInstanceImpl(myProject).updateMappedVcsesImmediately(); }