24252627282930313233
public StructureViewTreeElement createCustomXmlTagTreeElement(@NotNull final XmlTag tag) { final PsiFile psiFile = tag.getContainingFile(); if (psiFile instanceof XmlFile) { return new XSModelTreeElement((XmlFile) psiFile); } return null; }