private static Optional<String> getNameFromTypeNameAnnotation(Class<?> erasedTargetType) {
        return AnnotationHelper.resolveAnnotation(erasedTargetType, JsonTypeName.class, JacksonModule.NESTED_ANNOTATION_CHECK)
                .map(JsonTypeName::value)
                .filter(name -> !name.isEmpty());
    }
Determine the unqualified name of the given class, e.g., as fall-back value for subtype reference with {@code JsonTypeInfo.Id.NAME}.

@param erasedTargetType class to produce unqualified class name for
@return simple class name, with declaring class's unqualified name as prefix for member classes
jsonschema-module-jackson/src/main/java/com/github/victools/jsonschema/module/jackson/JsonSubTypesResolver.java