private static Set<Annotation> getQualifierAnnotations(Field field) {
    // Assume that any annotations other than @MockBean/@SpyBean are qualifiers
    Annotation[] candidates = field.getDeclaredAnnotations();
    Set<Annotation> annotations = new HashSet<>(candidates.length);
    for (Annotation candidate : candidates) {
      if (!isMockOrSpyAnnotation(candidate)) {
        annotations.add(candidate);
      }
    }
    return annotations;
  }
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