Completely Inside Another Element Warning

Hello

I am creating a script that would solve the “completely inside another element” warning, my script now gets the items with the warning, puts them into two lists, each item of the first list has its counterpart in the second.

I have looked high and low for a switch join node, but couldn’t find anything aside from synthesize:
image

but its not very intuitive if you dont mind me saying, is there any other package with such a node?
I have looked through the forum (most are really old), almost all of them have it in python, and even when i copy paste it it doesnt work…

i know i have to look throught revit API, and i came to here:

if anyone could guide me on how to use it, or have any alternative i would really appreciate it