private static bool TryMakeConnector(IConnector outputConnector, IConnector inputConnector, out INodeConnection successfulConnection) { if (outputConnector.CanConnectTo(inputConnector)) { INodeConnection connection = new NodeConnection(outputConnector, inputConnector); outputConnector.AddConnection(connection); inputConnector.AddConnection(connection); successfulConnection = connection; return(true); } successfulConnection = default; return(false); }