public static LanguageElement FindParentByElementType(this LanguageElement current, LanguageElementType parentType)
 {
     return current.GetParents().FirstOrDefault(p => p.ElementType == parentType);            
 }