void () { NegatedIfElseInspection tool = new NegatedIfElseInspection(); tool.m_ignoreNegatedNullComparison = true; tool.m_ignoreNegatedZeroComparison = true; myFixture.enableInspections(tool); myFixture.testHighlighting(getTestName(false) + ".java"); }