void (final String file1, final String file2, final String... additionalLocales) { myFixture.configureByFile(getTestName(true) + "/" + file1); myFixture.configureByFile(getTestName(true) + "/" + file2); final SuspiciousLocalesLanguagesInspection inspection = new SuspiciousLocalesLanguagesInspection(); if (additionalLocales.length != 0) { inspection.setAdditionalLanguages(List.of(additionalLocales)); } myFixture.enableInspections(inspection); myFixture.checkHighlighting(); }