boolean (@NotNull FoldingDescriptor foldingDescriptor, @NotNull FoldingBuilder foldingBuilder) { try { return foldingBuilder.isCollapsedByDefault(foldingDescriptor); } catch (IndexNotReadyException e) { LOG.error(e); return false; } }