void (final String hint, String... files) { final String testFileName; final PsiFile file; if (files.length > 0) { final PsiFile[] allFiles = myFixture.configureByFiles(files); file = allFiles[0]; testFileName = FileUtilRt.getNameWithoutExtension(file.getName()); } else { testFileName = getTestName(true); file = myFixture.configureByFile(testFileName + ".py"); } final IntentionAction intentionAction = myFixture.findSingleIntention(hint); assertNotNull(intentionAction); assertSdkRootsNotParsed(file); myFixture.launchAction(intentionAction); myFixture.checkResultByFile(testFileName + "_after.py", true); }