}
}
private boolean containsAllSuperclassTypes(AnnotatedType<?> annotatedType, Class<?> superClass, List<AnnotatedType<?>> annotatedTypes)
{
Typed typed = annotatedType.getAnnotation(Typed.class);
if (typed != null)
{
List<Class<?>> typeList = Arrays.asList(typed.value());
AnnotatedType<?> superType = getAnnotatedTypeForClass(annotatedTypes, superClass);
if (superType != null)
{
Typed superClassTyped = superType.getAnnotation(Typed.class);
Set<Type> superClassTypes;
if (superClassTyped != null)
{
superClassTypes = new HashSet<Type>(Arrays.asList(superClassTyped.value()));
}
else
{
superClassTypes = superType.getTypeClosure();