<BUG>checkVersionsEqual(loopVersion, priorVersion);PluginDescriptor pluginDescriptor = getPluginDescriptor(pluginId);i.set(PluginConfig.create(pluginDescriptor, properties));</BUG><CONTEXT>boolean found = false;for (ListIterator<PluginConfig> i = configs.listIterator(); i.hasNext();) {PluginConfig loopPluginConfig = i.next();if (pluginId.equals(loopPluginConfig.id())) {String loopVersion = Versions.getVersion(loopPluginConfig.toProto());<extra_id_0>found = true;break;</CONTEXT>
for (ListIterator<GaugeConfig> i = configs.listIterator(); i.hasNext();) {GaugeConfig loopConfig = i.next();String loopVersion = Versions.getVersion(loopConfig.toProto());if (loopVersion.equals(version)) {i.remove();