AnnotationIndex index = unit.getAttachment(AnnotationIndex.class);
if (index == null)
return false;
Set<Element<Weld, ?>> result = new HashSet<Element<Weld, ?>>(1);
result.addAll(index.classHasConstructorAnnotatedWith(Weld.class));
result.addAll(index.classHasFieldAnnotatedWith(Weld.class));
result.addAll(index.classHasMethodAnnotatedWith(Weld.class));
if (result.size() == 0)
{