code: public static boolean hasProperty(TypeDef typeDef, String property) {
         return unrollHierarchy(typeDef)
         .stream()
         .flatMap(h -> h.getProperties().stream())
         .filter(p -> property.equals(p.getName()))
         .findAny()
         .isPresent();
      }
docs: Checks if property exists on the specified type.
  @param typeDef   The type.
  @param property  The property name.
  @return          True if method is found, false otherwise.