SI-4788/SI-5948 Respect RetentionPolicy of Java annotations

There used to be `!annot.matches(definitions.DeprecatedAttr)` – are you sure removing it doesn't change behavior?