void (int expectedMs, String jsonFileNameWithoutExtension) { myFixture.configureByFiles("/" + jsonFileNameWithoutExtension + ".json"); PlatformTestUtil.dispatchAllInvocationEventsInIdeEventQueue(); // process VFS events before perf test final ThrowableRunnable<Exception> test = () -> skeleton(new Callback() { @Override public void registerSchemes() { final String moduleDir = getUrlUnderTestRoot(getTestName(true)); addSchema(new UserDefinedJsonSchemaConfiguration(jsonFileNameWithoutExtension, JsonSchemaVersion.SCHEMA_4, moduleDir + "/" + jsonFileNameWithoutExtension + ".json", false, Collections.emptyList())); myDoCompletion = false; } @Override public void configureFiles() { // files have been configured before the performance test started to not influence the results } @Override public void doCheck() { myFixture.doHighlighting(); } }); PlatformTestUtil.startPerformanceTest(getTestName(false), expectedMs, test).usesAllCPUCores().assertTiming(); }