void () { myDetectionQueue = new MergingUpdateQueue("FrameworkDetectionQueue", 500, true, null, this, null, false); if (ApplicationManager.getApplication().isUnitTestMode()) { myDetectionQueue.hideNotify(); } myDetectedFrameworksData = new DetectedFrameworksData(myProject); FrameworkDetectionIndex.getInstance().addListener(this, myProject); myProject.getMessageBus().connect(this).subscribe(DumbService.DUMB_MODE, new DumbService.DumbModeListener() { @Override public void enteredDumbMode() { myDetectionQueue.suspend(); } @Override public void exitDumbMode() { myDetectionQueue.resume(); } }); }