@Override
  public Icon getIcon(@NotNull PsiElement element, int flags) {
    if (element instanceof XmlFile xmlFile) {
      DomTag tag = DOM_FILE_DESCRIPTION.getFileData(xmlFile);
      if (tag == null) return null;

      DomFileDescription<?> restored = restoreDomFileDescription(tag);
      if (restored == null) {
        return null;
      }

      Icon fileIcon = restored.getFileIcon(xmlFile, flags);
      if (fileIcon != null) {
        return IconManager.getInstance().createLayeredIcon(element, fileIcon, ElementBase.transformFlags(element, flags));
      }
    }
    return null;
  }
@Override
  public Icon getIcon(@NotNull PsiElement element, int flags)