ResourceBundle () { PluginDescriptor descriptor = myPluginDescriptor; String pathToBundle = bundle; if (pathToBundle == null) { if (descriptor != null) pathToBundle = descriptor.getResourceBundleBaseName(); if (pathToBundle == null) return OptionsBundle.INSTANCE.getResourceBundle(); } ClassLoader classLoader = descriptor != null ? descriptor.getPluginClassLoader() : null; return DynamicBundle.getResourceBundle(classLoader != null ? classLoader : getClass().getClassLoader(), pathToBundle); }