StructureViewBuilder (@NotNull final XmlFile file) { if (file.getViewProvider().getFileType() != HtmlFileType.INSTANCE) return null; return new TreeBasedStructureViewBuilder() { @Override public boolean isRootNodeShown() { return false; } @Override @NotNull public StructureViewModel createStructureViewModel(@Nullable Editor editor) { return new HtmlStructureViewTreeModel(file, editor); } }; }