void () { myFixture.configureByText("requirements.txt", "<warning descr=\"Package requirement 'pkg[extras]' is not satisfied\">pkg[extras]</warning>"); final PyPackageRequirementsInspection inspection = new PyPackageRequirementsInspection(); myFixture.enableInspections(inspection); myFixture.checkHighlighting(isWarning(), isInfo(), isWeakWarning()); myFixture.launchAction(myFixture.findSingleIntention("Ignore requirement")); assertContainsElements(inspection.ignoredPackages, "pkg"); }