private List<String> getAnnotatedPropertyOrder(Class<?> declaringType) {
        return AnnotationHelper.resolveAnnotation(declaringType, JsonPropertyOrder.class, JacksonModule.NESTED_ANNOTATION_CHECK)
                .map(JsonPropertyOrder::value)
                .filter(valueArray -> valueArray.length != 0)
                .map(Arrays::asList)
                .orElseGet(Collections::emptyList);
    }
Lookup the list of specifically sorted property names in the given type based on its {@link JsonPropertyOrder} annotation.

@param declaringType type for which to lookup the list of specifically sorted property names
@return {@link JsonPropertyOrder#value()} or empty list
jsonschema-module-jackson/src/main/java/com/github/victools/jsonschema/module/jackson/JsonPropertySorter.java