void () { myFixture.configureByFile("IgnoreShadowingBuiltins.py"); myFixture.enableInspections(PyShadowingBuiltinsInspection.class); final IntentionAction intentionAction = myFixture.getAvailableIntention("Ignore shadowed built-in name \"open\""); assertNotNull(intentionAction); myFixture.launchAction(intentionAction); myFixture.checkHighlighting(true, false, true); }