MockFacetConfiguration (VirtualFile... files) { final List<? extends DetectedFrameworkDescription> frameworks = detect(); final DetectedFrameworkDescription description = assertOneElement(frameworks); assertSameElements(description.getRelatedFiles(), files); return assertInstanceOf(assertInstanceOf(description, FacetBasedDetectedFrameworkDescription.class).getConfiguration(), MockFacetConfiguration.class); }