private static boolean isMockOrSpyAnnotation(Annotation candidate) {
    Class<? extends Annotation> type = candidate.annotationType();
    return (type.equals(SpringBean.class) || type.equals(SpringSpy.class));
  }
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