void () { final TrailingSpacesInPropertyInspection inspection = new TrailingSpacesInPropertyInspection(); inspection.myIgnoreVisibleSpaces = true; myFixture.enableInspections(inspection); VirtualFile file = myFixture.copyFileToProject("/propertiesFile/highlighting/trailingSpaces2.properties"); myFixture.configureFromExistingVirtualFile(file); myFixture.checkHighlighting(true, false, true); myFixture.disableInspections(inspection); }