// Redefining the same object twice so just ignore it.
} else {
// Duplicate definitions found. If the definition is not already
// marked as duplicated then mark it and report it as a duplicate.
if (!definition.isDuplicated()) {
SourceLocation firstSource = definition.getSource();
Path firstPath = definition.getPath();
reportDuplicate(context, firstSource, firstPath, identifier);
definition.setDuplicated(true);
}