void (final Class<? extends PyInspection> inspectionClass) { myFixture.configureByFile("inspections/" + getTestName(false) + "/test.py"); myFixture.enableInspections(inspectionClass); myFixture.checkHighlighting(true, false, true); }