in Sources/SwiftSyntaxBuilder/gyb_helpers/SyntaxBuildableWrappers.py [0:0]
def element_in_collections(self):
"""
Return the collection types in which this type occurs as an element.
We automatically make the `ExpressibleAs*` protocols conform to the `ExpressibleAs*` protocol of the collection they occur in.
"""
result = []
for node in [SyntaxBuildableNode(node) for node in SYNTAX_NODES if node.is_syntax_collection()]:
if node.collection_element_type() == self:
result.append(node.type())
return result