StructureViewBuilder (@NotNull PsiFile psiFile) { if (!(psiFile instanceof ShFile)) return null; return new TreeBasedStructureViewBuilder() { @NotNull @Override public StructureViewModel createStructureViewModel(@Nullable Editor editor) { return new Model(psiFile); } }; }