// 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(JEnumType.VALUES_ARRAY_NAME)) {
block.removeStmt(removeIndex--);
field.setInitializer(null);
}
}
}
}