}
@Override
public double similarity(StructureNode left, StructureNode right) {
if (!left.getName().equals(right.getName())) {
return new LevenshteinSimilarityCalculator().calculateSimilarity(left.getContent(), right.getContent());
} else {
return 1.0;
}
}