UEdGraphPin::GetSchema

Shorthand way to access the schema of the graph that owns the node that owns this pin