protected boolean checkHtml(@NotNull XmlElement element, boolean isHtml) {
    if (isHtml ^ isForHtml()) {
      return false;
    }
    if (!isHtml && XmlHighlightVisitor.skipValidation(element)) {
      return false;
    }
    return true;
  }
protected boolean checkHtml(@NotNull XmlElement element, boolean isHtml)