@NotNull
  @Override
  public StructureViewTreeElement getRoot() {
    XmlFile file = getPsiFile();
    if (DescriptorUtil.isPluginXml(file)) {
      XmlTag rootTag = file.getRootTag();
      if (rootTag != null) {
        return new PluginDescriptorTreeElement(rootTag, true, true);
      }
    }

    // shouldn't happen; just for additional safety
    return super.getRoot();
  }
@NotNull
  @Override
  public StructureViewTreeElement getRoot()