int (@NotNull StructureViewModel structureViewModel) { final StructureViewModel.ExpandInfoProvider provider = ObjectUtils.tryCast(structureViewModel, StructureViewModel.ExpandInfoProvider.class); return provider == null ? 2 : provider.getMinimumAutoExpandDepth(); }