return properties != null ? new DescribedAsFacetOnMemberFromProperties(properties, holder) : null;
}
private static DescribedAsFacet createFromAnnotationIfPossible(final ProcessMethodContext processMethodContext) {
// look for annotation on the property
final DescribedAs annotation = Annotations.getAnnotation(processMethodContext.getMethod(), DescribedAs.class);
return annotation == null ? null : new DescribedAsFacetOnMemberAnnotation(annotation.value(), processMethodContext.getFacetHolder());
}