void (@NotNull final Class inspectionClass, @NotNull final String hint, final String @NotNull [] files) { final String testFileName = getTestName(true); myFixture.enableInspections(inspectionClass); String [] filenames = Arrays.copyOf(files, files.length + 1); filenames[files.length] = testFileName + ".py"; myFixture.configureByFiles(filenames); final IntentionAction intentionAction = myFixture.findSingleIntention(hint); assertNotNull(intentionAction); myFixture.launchAction(intentionAction); myFixture.checkResultByFile(testFileName + ".py", testFileName + "_after.py", true); }