code: void addBranches(int lineNumber, int numberOfBranches) {
      int lineIdx = lineNumber - 1;
      Integer currentValue = branchesInLine.get(Integer.valueOf(lineIdx));
      if (currentValue == null) {
        branchesInLine.put(lineIdx, numberOfBranches);
      } else {
        branchesInLine.put(lineIdx, currentValue + numberOfBranches);
      }
    }
docs: Add a number of branches to a line.
  @param lineNumber the line number that contains the branch statement.
  @param numberOfBranches the number of branches to add to the record.