Added collapse-checking methods in FoldingStructureComputationContext.