ResourceBundle (@NotNull ClassLoader classLoader) { boolean isDefault = DefaultBundleService.isDefaultBundle(); ResourceBundle bundle = com.intellij.reference.SoftReference.dereference(isDefault ? myDefaultBundle : myBundle); if (bundle == null) { bundle = resolveResourceBundle(myPathToBundle, classLoader); SoftReference<ResourceBundle> ref = new SoftReference<>(bundle); if (isDefault) { myDefaultBundle = ref; } else { myBundle = ref; } } return bundle; }