public static bool IsPenetrationCell(this BCOM.Element element) { if (!element.IsCompundCell()) { return(false); } var cell = element.AsCellElement(); return(cell.Name == PenConfigVariables.CellName.Value || cell.Name == PenConfigVariables.CellNameOld.Value); }