code: public static boolean isAlternative(EnhancedAnnotated<?, ?> annotated, MergedStereotypes<?, ?> mergedStereotypes) {
          return annotated.isAnnotationPresent(Alternative.class) || mergedStereotypes.isAlternative();
      }
docs: Is alternative.
  
  @param annotated the annotated
  @param mergedStereotypes merged stereotypes
  @return true if alternative, false otherwise