public static bool DependsOn(this IVisitorVariables var, IVisitorVariables other) { if (var.Equals(other)) { return(false); } return(other.ProvidedVariables.Any(p => var.DependendtVariables.Contains(p))); }