void () { Disposable disposable = Disposer.newDisposable(); myDisposable = disposable; BackgroundTaskUtil.executeOnPooledThread(disposable, () -> GitExecutableManager.getInstance().testGitExecutableVersionValid(myProject)); myVFSListener = GitVFSListener.createInstance(this, disposable); // make sure to read the registry before opening commit dialog myProject.getService(VcsUserRegistry.class); GitAnnotationsListener.registerListener(myProject, disposable); GitAdvancedSettingsListener.registerListener(myProject, disposable); GitUserRegistry.getInstance(myProject).activate(); GitBranchIncomingOutgoingManager.getInstance(myProject).activate(); }