void (@NotNull Class<? extends LocalInspectionTool> inspectionClass, @NotNull String intentionStr, @NotNull String modifiedFile) { myFixture.enableInspections(inspectionClass); myFixture.copyDirectoryToProject(getTestName(true), ""); myFixture.configureFromTempProjectFile(getTestName(true) + ".py"); myFixture.checkHighlighting(true, false, false); final IntentionAction intentionAction = myFixture.findSingleIntention(intentionStr); assertNotNull(intentionAction); myFixture.launchAction(intentionAction); final String expectedFile = getTestName(true) + "/" + graftBeforeExt(modifiedFile, "_after"); myFixture.checkResultByFile(modifiedFile, expectedFile, true); }