Is it possible to find nodes by out ports?

I use dynamo 2.5.0, revit 2021. I want to find nodes having ‘familydocument’ out ports, but the search result display the nodes both have in ports and out ports of ‘familydocument’. Can I find, or filter the result which only have specific out ports?