StructureViewBuilder (@NotNull PsiFile psiFile) { for (Language language : XMLLanguage.INSTANCE.getLanguageExtensionsForFile(psiFile)) { PsiStructureViewFactory factory = LanguageStructureViewBuilder.INSTANCE.forLanguage(language); if (factory == null) continue; final StructureViewBuilder builder = factory.getStructureViewBuilder(psiFile); if (builder != null) { return builder; } } return null; }