boolean (final PsiFile file) { try { final StructureViewBuilder structureViewBuilder = LanguageStructureViewBuilder.INSTANCE.getStructureViewBuilder(file); return structureViewBuilder instanceof TreeBasedStructureViewBuilder; } catch (IndexNotReadyException e) { return false; } }