public class JavaClass { @Deprecated @SomeAnnotation public String foo() { return ""; } }