}
if (!loadedPluginIds.add(pluginId)) {
Plugin existingPlugin = Plugin.getByPluginId(pluginId);
URL u = existingPlugin == null ? null : existingPlugin.getPluginLoader().getURL();
if (cannotDisable && initialPlugin) {
throw new DuplicatePluginIdError(pluginId, loadedFrom, u);
} else {
throw new DuplicatePluginIdException(pluginId, loadedFrom, u);
}
}