// }
// v2 - using the CPC2, this also knows about methods that are being used so is much more precise
// and never has to guess if something needs a rewrite
if (!skipReferencesCheck) {
References refs = ConstantPoolChecker2.getReferences(bytes);
boolean needsRewriting = false;
for (String clazz : refs.referencedClasses) {
if (typeRegistry != null && typeRegistry.isReloadableTypeName(clazz)) {
needsRewriting = true;
break;