Blender's Cavity shader in Unreal Engine

I’m trying to find a way to recreate Blender’s Cavity shader in Unreal Engine, but haven’t found or done anything so far
does anyone know how to make this kind of effect in Unreal Engine?
example of how Cavity shader looks like in Blender, the edges