@SuppressWarnings("unchecked")
private static MemberValuePair convert(
final AnnotationAttributeValue<?> value) {
if (value instanceof NestedAnnotationAttributeValue) {
final NestedAnnotationAttributeValue castValue = (NestedAnnotationAttributeValue) value;
AnnotationExpr annotationExpr;
final AnnotationMetadata nestedAnnotation = castValue.getValue();
if (castValue.getValue().getAttributeNames().size() == 0) {
annotationExpr = new MarkerAnnotationExpr(
JavaParserUtils.getNameExpr(nestedAnnotation
.getAnnotationType()