How to hide parameters in the inspector [GDExtension]

Godot Version

Godot 4.2.2

Question

I have added parameters in the inspector using ClassDB::add_property, how can I control the visibility of certain properties, for example if some parameters depend on whether some function is enabled in the plugin

Look how CSG class does it. They have properties that appear when you enable collisions