void () { myFixture.configureByText("requirements.txt", "pkg[extras]"); final PyPackageRequirementsInspection inspection = new PyPackageRequirementsInspection(); inspection.ignoredPackages.add("pkg"); myFixture.enableInspections(inspection); myFixture.checkHighlighting(isWarning(), isInfo(), isWeakWarning()); }