if (targetAnns.length == 0) {
return Collections.emptySet();
}
Set<String> names = new LinkedHashSet<String>();
for (Annotation a : targetAnns) {
NameBinding nb = a.annotationType().getAnnotation(NameBinding.class);
if (nb != null) {
names.add(a.annotationType().getName());
}
}
return names;