code: private void insertInheritedGroups(final Class<?> clazz, final GroupChain chain) {
      validationGroupsMetadata.getParentsOfGroup(clazz).forEach(inheritedGroup -> {
        final Group group = new Group(inheritedGroup);
        chain.insertGroup(group);
        insertInheritedGroups(inheritedGroup, chain);
      });
    }
docs: Recursively add inherited groups into the group chain.
  
  @param clazz The group interface
  @param chain The group chain we are currently building.