/**
* Returns the cells which are movable in the given array of cells.
*/
public Object[] getFoldableCells(Object[] cells, final boolean collapse)
{
return mxGraphModel.filterCells(cells, new Filter()
{
public boolean filter(Object cell)
{
return isCellFoldable(cell, collapse);
}