code: public static <FACETTYPE extends Facet<?>> Set<Class<FACETTYPE>> getAllRelatedFacets(final Class<?> inspectedType)
     {
        Set<Class<FACETTYPE>> seen = new LinkedHashSet<Class<FACETTYPE>>();
        return getAllRelatedFacets(seen, inspectedType);
     }
docs: Inspect the given {@link Class} for all {@link Facet} types from all {@link FacetConstraint} declarations. This
  method inspects the entire constraint tree.