public void RemoveAllInputPortsFromNode(List<string> without = null)
{
if (without == null)
{
while (InputPorts.Any())
RemoveInputPortFromNode(InputPorts.First());
}
else
{
var filteredPorts = InputPorts.Where(port => !without.Contains(port.Name)).ToList();
foreach (var port in filteredPorts)
RemoveInputPortFromNode(port);
}
}