SI-8954 Make @deprecated{Overriding,Inheritance} aware of @deprecated.

This makes sure that:
 - there is no warning for a `@deprecated` class inheriting a
   `@deprecatedInheritance` class
 - there is no warning for a `@deprecated` method or a method of a
   `@deprecated` class overriding a `@deprecatedOverriding` method

This should remove quite a few useless deprecation warnings from the
library.
I want to avoid raising a warning if we override a member of a `@deprecatedInheritance` class with a `@deprecated` member. The only other option I can think of is `!sym.owner.hasDeprecatedInheritanceAnnotation`, which seems to work just as well, because the owner *is* the enclosing class/trait/... anyway. So maybe `owner` is enough.