Compare element's list with Integer List


I have a list of all wall elements and ids (from a linked file), and another list with all the walls that have clashes (taken from a interference check).

I need to compare these two lists and return the list from linked file, but excluding the elements not present in the interference check list.

The problem is that the list of elements from the linked file is different, its a list of elements and the other list is a list of integers. How can I do this preserving the elements (wall) from the second list?


So, I dont know if this is the best but it worked.
I got the element’s ID from the Wall list, used the difference node to only keep the ones with clash.
And used the Element.ByID from clockwork package.