String (String className) { String pkg = StringUtil.getPackageName(className); if (pkg.isEmpty()) pkg = className; String prefix = getMeaninglessPrefix(pkg); if (!prefix.isEmpty()) { pkg = pkg.substring(prefix.length()) + " (in " + StringUtil.trimEnd(prefix, ".") + ")"; } IdeaPluginDescriptor plugin = PluginManagerCore.getPlugin(PluginManager.getPluginByClassNameAsNoAccessToClass(className)); return plugin == null ? pkg : "Plugin " + plugin.getName() + ": " + pkg; }