TreeBasedStructureViewBuilder (@NotNull PsiFile psi) { return modelFactory == null ? null : new TreeBasedStructureViewBuilder() { @Override public boolean isRootNodeShown() { return false; } @NotNull @Override public StructureViewModel createStructureViewModel(@Nullable Editor editor) { return modelFactory.fun(psi, editor); } }; }