This commit makes ConstantFieldFeature compatible with GraalVM 22.2 while retaining GraalVM 22.1 compatibility. See gh-28624