public void visitAny(Node that) {
Iterator<Message> errorIter = that.getErrors().iterator();
while (errorIter.hasNext()) {
Message error = errorIter.next();
if (error instanceof UsageWarning) {
UsageWarning warning = (UsageWarning)error;
E warningName = parseName(warning.getWarningName());
if (warningName == null) {
continue;
}
Integer numSuppressed = counts.get(warningName);
if (suppressed.get(warningName) != null) {
warning.setSuppressed(true);
counts.put(warningName, numSuppressed.intValue()+1);
}
}
}
super.visitAny(that);