public Output GetOutput(string id) { lock (nodesLock) return nodes.SelectMany(node => node.Outputs).FirstOrDefault(output => output.Id == id); }