void () { doWithEditorConfigDisabled(()->myFixture.configureByFile("test.txt")); myFixture.copyFileToProject(".editorconfig"); myFixture.enableInspections(EditorConfigEncodingInspection.class); IntentionAction quickFix = myFixture.findSingleIntention(EditorConfigBundle.message("inspection.file.encoding.ignore")); assertNotNull(quickFix); myFixture.launchAction(quickFix); assertTrue(EditorConfigEncodingCache.Companion.getInstance().isIgnored(getFile().getVirtualFile())); myFixture.checkHighlighting(); }