void () { VirtualFile file = createFrameworkConfig("my-config.xml"); assertNoFrameworksDetected(); Disposer.register(getTestRootDisposable(), DynamicPluginsTestUtil.loadExtensionWithText( "<framework.detector implementation=\"" + MockFacetDetector.class.getName() + "\"/>", "com.intellij")); assertFrameworkDetectedIn(file); }