void () { myFixture.addFileToProject("p.properties", "key=value"); myFixture.addFileToProject("p_en.properties", ""); myFixture.addFileToProject("p_en_EN.properties", ""); myFixture.addFileToProject("p_en_GB.properties", ""); final PsiFile file = myFixture.addFileToProject("p_en_US.properties", ""); final PropertiesFile propertiesFile = PropertiesImplUtil.getPropertiesFile(file); assertNotNull(propertiesFile); final ResourceBundle resourceBundle = propertiesFile.getResourceBundle(); assertSize(5, resourceBundle.getPropertiesFiles()); final IncompletePropertyInspection incompletePropertyInspection = IncompletePropertyInspection.getInstance(propertiesFile.getContainingFile()); incompletePropertyInspection.addSuffixes(Collections.singleton("en")); assertFalse(incompletePropertyInspection.isPropertyComplete("key", resourceBundle)); }