Revert deleting setter/getter of excludeAnnotations

This reverts commit 00b9362b84ec48c66e9fd41eca24dcab197e299f.