void (BiConsumer<DataFlowInspection, ConstantValueInspection> inspectionMutator) { DataFlowInspection inspection = new DataFlowInspection(); ConstantValueInspection cvInspection = new ConstantValueInspection(); inspectionMutator.accept(inspection, cvInspection); myFixture.enableInspections(inspection, cvInspection); myFixture.testHighlighting(true, false, true, getTestName(false) + ".java"); }