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