void (String errorCode) { myFixture.configureByFiles("inspections/PyPep8NamingInspection/ignored/" + getTestName(true) + ".py"); final PyPep8NamingInspection inspection = new PyPep8NamingInspection(); inspection.ignoredErrors.add(errorCode); myFixture.enableInspections(inspection); myFixture.checkHighlighting(false, false, true); }