private void parsePackages(SensorContext sensorContext){
  for (  Directory directory : packageList) {
    sensorContext.saveMeasure(directory,CoreMetrics.DIRECTORIES,1.0);
    sensorContext.saveMeasure(directory,CoreMetrics.FILES,(double)filesCount.get(directory));
  }
}

private void parsePackages ( SensorContext sensorContext ) { for ( Directory directory : packageList ) { sensorContext . saveMeasure ( directory , CoreMetrics . DIRECTORIES , 1.0 ) ; sensorContext . saveMeasure ( directory , CoreMetrics . FILES , ( double ) filesCount . get ( directory ) ) ; } }
count the metrics for packages
