JPanel (@NotNull PluginId plugin, boolean addUseWord) { final JPanel panel = new JPanel(new BorderLayout()); final IdeaPluginDescriptor pluginDescriptor = PluginManagerCore.getPlugin(plugin); if (pluginDescriptor == null) { //noinspection HardCodedStringLiteral panel.add(new JBLabel(plugin.getIdString()), BorderLayout.CENTER); return panel; } HtmlBuilder message = new HtmlBuilder(); String vendor = pluginDescriptor.getVendor(); message.append(DiagnosticBundle.message("plugin.conflict.use.by.vendor.label", addUseWord ? 0 : 1, pluginDescriptor.getName(), vendor != null ? 0 : 1, vendor)); panel.add(new JBLabel(message.wrapWithHtmlBody().toString())); return panel; }