boolean (boolean forceFireEvent) { MyVcsActivator activator = ReadAction.compute(() -> { synchronized (myUpdateLock) { return myActivated ? createVcsActivator() : null; } }); if (activator != null) { boolean wasChanged = activator.activate(); if (forceFireEvent || wasChanged) { BackgroundTaskUtil.syncPublisher(myProject, ProjectLevelVcsManagerEx.VCS_ACTIVATED).vcsesActivated(myActiveVcses); } } return activator != null; }