return null;
}
Collection<TypeMirror> typeArgs =
declaredType.getActualTypeArguments();
if (typeArgs.isEmpty()) {
throw new ValidationException(
MessageCode.SLIM3GEN1004,
env,
declaration.getPosition(),
declaredType);
}
TypeMirror elementType = typeArgs.iterator().next();
DeclaredType elementDeclaredType =
TypeUtil.toDeclaredType(elementType);
if (elementDeclaredType == null) {
throw new ValidationException(
MessageCode.SLIM3GEN1016,
env,
declaration.getPosition(),
elementType);
}