@Override
  public void registerErrorQuickFix(@NotNull final PsiErrorElement element, @NotNull final HighlightInfo.Builder highlightInfo) {
    if (PsiTreeUtil.getParentOfType(element, XmlTag.class) == null) {
      return;
    }
    final String text = element.getErrorDescription();
    if (text.equals(XmlPsiBundle.message("xml.parsing.unescaped.ampersand.or.nonterminated.character.entity.reference"))) {
      highlightInfo.registerFix(
        new EscapeCharacterIntentionFix(element, new TextRange(0, 1), "&", "&amp;"),
        null, null, null, null);
    }
  }
@Override
  public void registerErrorQuickFix(@NotNull final PsiErrorElement element, @NotNull final HighlightInfo.Builder highlightInfo)