void () { myFixture.configureByFile("inspections/suppress/suppressForStatement.py"); myFixture.enableInspections(PyUnresolvedReferencesInspection.class); final List<IntentionAction> intentions = myFixture.filterAvailableIntentions("Suppress for a statement"); // Rename reference, Ignore unresolved references, Ignore all unresolved attributes of assertEquals(3, intentions.size()); final IntentionAction suppressAction = intentions.get(0); myFixture.launchAction(suppressAction); myFixture.checkResultByFile("inspections/suppress/suppressForStatement.after.py"); }