HighlightTestInfo (@NonNls String @NotNull ... filePath) { return new HighlightTestInfo(getTestRootDisposable(), filePath) { @Override public HighlightTestInfo doTest() { try { configureByFiles(projectRoot, filePaths); } catch (Exception e) { throw new RuntimeException(e); } ExpectedHighlightingData data = new JavaExpectedHighlightingData(myEditor.getDocument(), checkWarnings, checkWeakWarnings, checkInfos); if (checkSymbolNames) data.checkSymbolNames(); checkHighlighting(data); return this; } }; }