};
for (final Map.Entry<String, CALDocComment> entry : caldocComments.entrySet()) {
final String entityName = entry.getKey();
final CALDocComment comment = entry.getValue();
if (comment != null) {
if (comment.getDescriptionBlock() != null) {
comment.getDescriptionBlock().accept(visitor, entityName);
}
if (comment.getDeprecatedBlock() != null) {
comment.getDeprecatedBlock().accept(visitor, entityName);
}
for (int j = 0, m = comment.getNArgBlocks(); j < m; j++) {
if (comment.getNthArgBlock(j).getTextBlock() != null) {
comment.getNthArgBlock(j).getTextBlock().accept(visitor, entityName);
}
}
for (int j = 0, m = comment.getNAuthorBlocks(); j < m; j++) {
if (comment.getNthAuthorBlock(j) != null) {
comment.getNthAuthorBlock(j).accept(visitor, entityName);
}
}
for (int j = 0, m = comment.getNDataConstructorReferences(); j < m; j++) {
if (comment.getNthDataConstructorReference(j) != null) {
validateGemReference(comment.getNthDataConstructorReference(j), entityName, workspaceManager, brokenReferences);
}
}
for (int j = 0, m = comment.getNFunctionOrClassMethodReferences(); j < m; j++) {
if (comment.getNthFunctionOrClassMethodReference(j) != null) {
validateGemReference(comment.getNthFunctionOrClassMethodReference(j), entityName, workspaceManager, brokenReferences);
}
}
for (int j = 0, m = comment.getNModuleReferences(); j < m; j++) {
if (comment.getNthModuleReference(j) != null) {
validateModuleReference(comment.getNthModuleReference(j), entityName, workspaceManager, brokenReferences);
}
}
for (int j = 0, m = comment.getNTypeClassReferences(); j < m; j++) {
if (comment.getNthTypeClassReference(j) != null) {
validateTypeClassReference(comment.getNthTypeClassReference(j), entityName, workspaceManager, brokenReferences);
}
}
for (int j = 0, m = comment.getNTypeConstructorReferences(); j < m; j++) {
if (comment.getNthTypeConstructorReference(j) != null) {
validateTypeConsReference(comment.getNthTypeConstructorReference(j), entityName, workspaceManager, brokenReferences);
}
}
if (comment.getReturnBlock() != null) {
comment.getReturnBlock().accept(visitor, entityName);
}
if (comment.getSummary() != null) {
comment.getSummary().accept(visitor, entityName);
}
if (comment.getVersionBlock() != null) {
comment.getVersionBlock().accept(visitor, entityName);
}
}
}
}