public function getMaximumCRAPIndex() {
		$maximumCRAP = 0;
		foreach ($this->getFiles() as $file) {
			foreach ($file->getLines() as $line) {
				if ($line->getType() == CloverLine::TYPE_METHOD) {
					if ($line->getCrap() > $maximumCRAP) {
						$maximumCRAP = $line->getCRAP();
					}
				}
			}
		}
		foreach ($this->getPackages() as $package) {
			foreach ($package->getFiles() as $file) {
				foreach ($file->getLines() as $line) {
					if ($line->getType() == CloverLine::TYPE_METHOD) {
						if ($line->getCrap() > $maximumCRAP) {
							$maximumCRAP = $line->getCRAP();
						}
					}
				}
			}
		}

		return $maximumCRAP;
	}