void (Module module, IdeModifiableModelsProvider provider) { if (!isDisableFacetAutodetection(module)) return; final DetectionExcludesConfiguration excludesConfiguration = DetectionExcludesConfiguration.getInstance(module.getProject()); final FrameworkType frameworkType = FrameworkDetectionUtil.findFrameworkTypeForFacetDetector(myFacetType); if (frameworkType != null) { for (VirtualFile file : provider.getContentRoots(module)) { excludesConfiguration.addExcludedFile(file, frameworkType); } } }