Union union = c.getAnnotation(Union.class); if (union != null) { return getAnnotatedUnion(union, names); }