ResourceBundle (@NotNull final String key, @NotNull final Project project) { final Ref<ResourceBundle> bundleRef = Ref.create(); final boolean r = PropertiesReferenceManager.getInstance(project).processAllPropertiesFiles((baseName, propertiesFile) -> { if (propertiesFile.findPropertyByKey(key) != null) { if (bundleRef.get() == null) { bundleRef.set(propertiesFile.getResourceBundle()); } else { return bundleRef.get().equals(propertiesFile.getResourceBundle()); } } return true; }); return r ? bundleRef.get() : null; }