How to get C# class of a non-tool node in editor, or from source file path?

Godot Version

4.6

Question

I have a [Tool] script that collects direct child nodes which are implemented as interface IBurstControlled. Not all classes inherits both IBurstControlled and [Tool], so I can’t directly get the instance of child node’s script. It will be a built-in type the script inherits, like Node2D or PointLight2D, and I am unable to find the correct script class.

I’ve found that node.GetScript().As<Script>().ResourcePath will give me the correct C# source file path.
But how can I get typeof(TheActualClass) from it in order to check if(TheActualClass is IBurstControlled)?

Oh, I found github.com/godotengine/godot-proposals/issues/12294 and https://github.com/godotengine/godot/pull/117696 , which means it does not have an official solution. I will go with the workaround, and keep this post if people have some other information.