4647484950515253545556
for (Vehicle v : newVehicles) { blocks = this.getUsedBlocksAsSet(); for (Block b : v.getUsedBlocks()) { if (blocks.contains(b)) throw new InconsistentGridException(b.toString()); } this.vehicles.add(v); } }