Removed the unnecessary null check for expectedDeprecationMessages as it's already initialized as an ArrayList and cannot be null.

Comment From: mhalbritter

Thank you very much and congratulations on your first contribution :tada:!