Collection<TypeMirror> seeAlsos = null;
XmlSeeAlso seeAlsoInfo = getAnnotation(XmlSeeAlso.class);
if (seeAlsoInfo != null) {
seeAlsos = new ArrayList<TypeMirror>();
try {
AnnotationProcessorEnvironment env = Context.getCurrentEnvironment();
for (Class clazz : seeAlsoInfo.value()) {
TypeDeclaration typeDeclaration = env.getTypeDeclaration(clazz.getName());
DeclaredType undecorated = env.getTypeUtils().getDeclaredType(typeDeclaration);
seeAlsos.add(undecorated);
}
}
catch (MirroredTypesException e) {
seeAlsos.addAll(e.getTypeMirrors());