JFieldRef enumRef = (JFieldRef) ref;
// See if LHS is a field ref to the class being initialized.
JField field = enumRef.getField();
if (field.isStatic() && field.getEnclosingType() == enclosingType) {
if (field instanceof JEnumField || field.getName().equals("$VALUES")) {
block.removeStmt(removeIndex--);
field.setInitializer(null);
}
}
}
}