void () { MethodCountInspection tool = new MethodCountInspection(); tool.m_limit = 5; tool.ignoreOverridingMethods = true; myFixture.enableInspections(tool); myFixture.testHighlighting(getTestName(false) + ".java"); }