List<TypeElement> types = ImmutableList.of();
while (types.isEmpty()) {
types = ElementFilter.typesIn(Arrays.asList(element));
element = element.getEnclosingElement();
}
<BUG>return Iterables.getOnlyElement(types);
</BUG>
}
@Override
public Set<String> getSupportedAnnotationTypes() {

List<TypeElement> types = ImmutableList.of();
while (types.isEmpty()) {
types = ElementFilter.typesIn(Arrays.asList(element));
element = element.getEnclosingElement();
}
return Iterables.getOnlyElement(types).asType();
}
@Override
public Set<String> getSupportedAnnotationTypes() {
