code: public static boolean isConstraintSatisfied(Project project,
              Set<Class<ProjectFacet>> requiredFacets)
     {
        boolean constraintsSatisfied = true;
        Iterable<StackFacet> stackFacets = project.getFacets(StackFacet.class);
        OUTER: for (StackFacet stackFacet : stackFacets)
        {
           for (Class<ProjectFacet> type : requiredFacets)
           {
              if (!stackFacet.getStack().supports(type))
              {
                 constraintsSatisfied = false;
                 break OUTER;
              }
           }
        }
        return constraintsSatisfied;
     }
docs: Inspect the given {@link Class}, and return <code>true</code> if all declared constraints have been satisfied.