protected String resolveTitleForType(TypeScope scope) {
        return Optional.ofNullable(scope.getType())
                .map(type -> type.getErasedType().getAnnotation(ApiModel.class))
                .map(ApiModel::value)
                .filter(title -> !title.isEmpty())
                .orElse(null);
    }
Look-up a "title" for the given member or its associated getter/field from the member type's {@link ApiModel} annotation's {@code value}.

@param scope targeted type
@return title (or {@code null})
jsonschema-module-swagger-1.5/src/main/java/com/github/victools/jsonschema/module/swagger15/SwaggerModule.java