void () { final TrailingSpacesInPropertyInspection inspection = new TrailingSpacesInPropertyInspection(); myFixture.enableInspections(inspection); myFixture.configureByFile("/propertiesFile/highlighting/trailingSpaces.properties"); myFixture.checkHighlighting(true, false, true); myFixture.disableInspections(inspection); }