code: public Optional<E> create(AnnotatedElement element) {
      Optional<E> component;
      for (Annotation annotation : element.getAnnotations()) {
        component = create(annotation);
        if (component.isPresent()) {
          return component;
        }
      }
      return Optional.empty();
    }
docs: Creates a component using the first annotation that maps to a component.
  <p>
  Use this method if only one component is allowed by target.
  
  @param element the element to search for annotations
  @return the created component or <code>null</code> if no annotations in the
  element could create a component.