void () { MisspelledHeaderInspection inspection = new MisspelledHeaderInspection(); inspection.CUSTOM_HEADERS.add("Custom-Header"); myFixture.enableInspections(inspection); myFixture.configureByText(ManifestFileType.INSTANCE, "Custom-Header: -\n"); myFixture.checkHighlighting(); }