code: public void checkAllRequirementsSatisfied(final String currentPath) {
          StringBuilder errors = new StringBuilder();
  
          for (Field field: this.dependantsInJson) {
              final Collection<String> requirements = this.dependantToRequirementsMap.get(field);
              if (!requirements.isEmpty()) {
                  errors.append("\n");
                  String type = field.getType().getName();
                  if (field.getType().isArray()) {
                      type = field.getType().getComponentType().getName() + "[]";
                  }
                  errors.append("\t* ").append(type).append(' ').append(field.getName()).append(" depends on ")
                          .append(requirements);
              }
          }
          Assert.equals(0, errors.length(),
                        "\nErrors were detected when analysing the @Requires dependencies of '" +
                                currentPath + "': " + errors);
      }
docs: Check that each requirement is satisfied.
  
  @param currentPath the json path to the element being checked