@ApiStatus.Internal
  public static ElementPattern<PsiElement> getHtmlElementInTextPattern() {
    return psiElement(XmlTokenType.XML_DATA_CHARACTERS)
      .withParent(StandardPatterns.or(psiElement(XmlText.class), psiElement(XmlDocument.class)))
      .inFile(PlatformPatterns.psiFile(HtmlFileImpl.class));
  }
@ApiStatus.Internal
  public static ElementPattern<PsiElement> getHtmlElementInTextPattern()