private PropertyNamingStrategy getAnnotatedNamingStrategy(Class<?> declaringType) {
        return AnnotationHelper.resolveAnnotation(declaringType, JsonNaming.class, NESTED_ANNOTATION_CHECK)
                .map(JsonNaming::value)
                .map(strategyType -> {
                    try {
                        return strategyType.getConstructor().newInstance();
                    } catch (ReflectiveOperationException | SecurityException ex) {
                        return null;
                    }
                })
                .orElse(null);
    }
Look-up the given type's {@link JsonNaming} annotation and instantiate the declared {@link PropertyNamingStrategy}.

@param declaringType type declaring fields for which the applicable naming strategy should be looked-up
@return annotated naming strategy instance (or {@code null})
jsonschema-module-jackson/src/main/java/com/github/victools/jsonschema/module/jackson/JacksonModule.java