void () { DetectionExcludesConfiguration.getInstance(myProject).addExcludedFramework(FacetBasedFrameworkDetector.createFrameworkType(MockSubFacetType.getInstance())); final VirtualFile file = createFrameworkConfig("my-config.xml"); assertFrameworkDetectedIn(file); }