private void logCause(boolean b, String cause, Map<String, Integer> causes, int total) { if (!causes.containsKey(cause)) logCause(b, cause, 0, total); else logCause(b, cause, causes.get(cause), total); }
private int causeCount(String cause, Map<String, Integer> causes) { if (causes.containsKey(cause)) return causes.get(cause); else return 0; }