Do not copy @Inherited annotations

Related to #1211.