public static boolean hasErrorElements(@Nullable ASTNode node) {
    return !SyntaxTraverser.astTraverser(node).traverse()
      .filter(t -> is(t, TokenType.ERROR_ELEMENT)).isEmpty();
  }
public static boolean hasErrorElements(@Nullable ASTNode node)