public static boolean isDeprecatedMember(JvmMember member) { if (member.isSetDeprecated()) { return member.isDeprecated(); } List<JvmAnnotationReference> annotations = member.getAnnotations(); for(JvmAnnotationReference annotation: annotations) { JvmAnnotationType annotationType = annotation.getAnnotation(); if (annotationType != null && Deprecated.class.getName().equals(annotationType.getIdentifier())) { return true; } } return false; }