void () { ConstructorCountInspection tool = new ConstructorCountInspection(); tool.m_limit = 2; tool.ignoreDeprecatedConstructors = true; myFixture.enableInspections(tool); myFixture.testHighlighting(getTestName(false) + ".java"); }