code: void validate(Schema schema, ImmutableList<ProfileFileElement> profileFiles) {
      List<String> errors = new ArrayList<>();
  
      for (ProfileFileElement profileFile : profileFiles) {
        for (TypeConfigElement typeConfig : profileFile.getTypeConfigs()) {
          ProtoType type = importedType(ProtoType.get(typeConfig.getType()));
          if (type == null) continue;
  
          Type resolvedType = schema.getType(type);
          if (resolvedType == null) {
            errors.add(String.format("unable to resolve %s (%s)",
                type, typeConfig.getLocation()));
            continue;
          }
  
          String requiredImport = resolvedType.location().getPath();
          if (!profileFile.getImports().contains(requiredImport)) {
            errors.add(String.format("%s needs to import %s (%s)",
                typeConfig.getLocation().getPath(), requiredImport, typeConfig.getLocation()));
          }
        }
      }
  
      if (!errors.isEmpty()) {
        throw new SchemaException(errors);
      }
    }
docs: Confirms that {@code protoFiles} link correctly against {@code schema}.