void () { final JsonSchemaService service = JsonSchemaService.Impl.get(getProject()); final List<JsonSchemaFileProvider> providers = new JsonSchemaProjectSelfProviderFactory().getProviders(getProject()); Assert.assertEquals(JsonSchemaProjectSelfProviderFactory.TOTAL_PROVIDERS, providers.size()); for (JsonSchemaFileProvider provider: providers) { final VirtualFile mainSchema = provider.getSchemaFile(); assertNotNull(mainSchema); assertTrue(service.isSchemaFile(mainSchema)); myFixture.enableInspections(new JsonSchemaComplianceInspection()); Disposer.register(getTestRootDisposable(), new Disposable() { @Override public void dispose() { JsonSchemaTestServiceImpl.setProvider(null); } }); myFixture.configureFromExistingVirtualFile(mainSchema); final List<HighlightInfo> infos = myFixture.doHighlighting(); for (HighlightInfo info : infos) { if (!HighlightSeverity.INFORMATION.equals(info.getSeverity())) { fail(String.format("%s in: %s", info.getDescription(), myFixture.getEditor().getDocument().getText(TextRange.create(info)))); } } } }