<BUG>i.set(InstrumentationConfig.create(instrumentationConfig));found = true;break;}</BUG><CONTEXT>boolean found = false;for (ListIterator<InstrumentationConfig> i = configs.listIterator(); i.hasNext();) {InstrumentationConfig loopConfig = i.next();String loopVersion = Versions.getVersion(loopConfig.toProto());if (loopVersion.equals(priorVersion)) {<extra_id_0>}</CONTEXT>
i.set(config);} else if (loopConfig.equals(config)) {throw new IllegalStateException("This exact instrumentation already exists");