public static QualifierDefinition forElement(AnnotatedElement element) {
    if (element != null && element instanceof Field) {
      Field field = (Field)element;
      Set<Annotation> annotations = getQualifierAnnotations(field);
      if (!annotations.isEmpty()) {
        return new QualifierDefinition(field, annotations);
      }
    }
    return null;
  }
Definition of a Spring {@link Qualifier @Qualifier}.

original authors Phillip Webb, Stephane Nicoll
@see Definition
spock-spring/src/main/java/org/spockframework/spring/mock/QualifierDefinition.java