See https://github.com/JuliaSmoothOptimizers/NLPModels.jl/pull/560#issuecomment-4049657981
See #560 (comment)