Icon (@NotNull PsiElement element, int flags) { if (element instanceof XmlFile) { DomFileDescription<?> description = DomManager.getDomManager(element.getProject()).getDomFileDescription((XmlFile)element); if (description == null) { return null; } final Icon fileIcon = description.getFileIcon(flags); if (fileIcon != null) { return IconManager.getInstance().createLayeredIcon(element, fileIcon, ElementBase.transformFlags(element, flags)); } } return null; }