public Pin ResolveOutputPin(Connection connection) { if (connection.NodeId != Id) { throw new InvalidOperationException("Wrong node Uid"); } return(OutputPins.FirstOrDefault(_ => _.Id == connection.PinId)); }