The hasNullableAnnotation() method was made obsolete in commit b5d153febf. See gh-34952 See gh-34261
b5d153febf