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

Not sure about the difference between combined and separate compilation. Maybe warnings from earlier compilation runs are not reported?