void () { setupCustomAnnotations(); DataFlowInspection inspection = new DataFlowInspection(); inspection.IGNORE_ASSERT_STATEMENTS = true; ConstantValueInspection cvInspection = new ConstantValueInspection(); cvInspection.IGNORE_ASSERT_STATEMENTS = true; myFixture.enableInspections(inspection, cvInspection); myFixture.testHighlighting(true, false, true, getTestName(false) + ".java"); }