public static string GetLocalNodeId(this CommonTree node) { return((node.Parent != null ? $"[{node.GetIndexForTypeInParent()}]" : string.Empty) + $"({node.Type}){node.ToString()}"); }