private static List<SDDocumentType> documentListOf(Schema... schemas) {
        return Arrays.stream(schemas).map(Schema::getDocument).toList();
    }
Self inheritance is checked early because it is possible, and because it otherwise
produces a stack overflow before getting to graph validation.
config-model/src/test/java/com/yahoo/schema/DocumentGraphValidatorTest.java