private ScanResult getScanResult() {
            if (this.scanResult == null) {
                this.scanResult = this.classGraphConfig.scan();
            }
            return this.scanResult;
        }
Simple implementation of a reflection based subtype resolver, considering only subtypes from a certain package.
jsonschema-examples/src/main/java/com/github/victools/jsonschema/examples/SubtypeLookUpExample.java