private void Module_OnNodeAdded(object sender, INode node) { if (node is BaseOutputNode) { if (!OutputNodes.Any(x => x.Node == node)) { AddNode(node); } } else if (node is BaseInputNode) { if (!InputNodes.Any(x => x.Node == node)) { AddNode(node); } } }