Hey Luke, Since the port stores the names of the variables in the tool tip string, I decided to locate the port based on the tool tip string.
However this may cause regressions later if the tool tip string is used for something else.

The other way, though longer, would be to use the GetASTIdentifierForOutportIndex() method for each port and find the port whose variable name matches the one saved. Should I switch to that?