boolean (@NotNull FoldingDescriptor foldingDescriptor) { FoldingBuilder builder = ((FoldingDescriptorWrapper) foldingDescriptor).myBuilder; return mayUseBuilder(foldingDescriptor.getElement(), builder) && builder.isCollapsedByDefault(foldingDescriptor); }