public static boolean containsDeepError(PsiElement element) {
    final ErrorElementVisitor visitor = new ErrorElementVisitor();
    element.accept(visitor);
    return visitor.containsErrorElement();
  }
public static boolean containsDeepError(PsiElement element)