6061626364656667686970
private int countErrors(String token) { int count = 0; for(int i = 0; i < this.errors.length; i ++) { SeverityCodeType severity = errors[i].getSeverityCode(); if( severity != null && severity.value().equals(token)) count ++; } return count; }