StructureViewModel (@Nullable Editor editor) { return new StructureViewModelBase(psiFile, editor, new YAMLStructureViewFile((YAMLFile)psiFile)){ @Override public @NotNull Collection<NodeProvider<?>> getNodeProviders() { return Collections.singleton(new YAMLAliasResolveNodeProvider()); } } .withSorters(Sorter.ALPHA_SORTER) .withSuitableClasses(YAMLFile.class, YAMLDocument.class, YAMLKeyValue.class); }