void () { LengthOneStringsInConcatenationInspection inspection = new LengthOneStringsInConcatenationInspection(); myFixture.enableInspections(inspection); ProjectInspectionProfileManager.getInstance(myFixture.getProject()).getCurrentProfile() .setErrorLevel(HighlightDisplayKey.find(inspection.getShortName()), HighlightDisplayLevel.WARNING, myFixture.getProject()); myFixture.testHighlighting(getTestName(false) + ".java"); }