StructureViewBuilder (@NotNull final PsiFile psiFile) { return new TreeBasedStructureViewBuilder() { @NotNull @Override public StructureViewModel createStructureViewModel(@Nullable Editor editor) { return new MarkdownStructureViewModel(psiFile, editor); } @Override public boolean isRootNodeShown() { return false; } }; }