RayCast2D equivalent to PhysicsBody2D's get_collision_exceptions()

Godot Version

v4.4.1.stable.mono.official [49a5bc7b6]

Question

Would it make sense to have a function to get all current exceptions for a RayCast2D node?
Just to be able to check, I guess.