void () { ExtractMethodRecommenderInspection inspection = new ExtractMethodRecommenderInspection(); inspection.minLength = 10; myFixture.enableInspections(inspection); myFixture.configureByFile(getTestName(false) + ".java"); myFixture.checkHighlighting(); }