!fieldToMerge.getName().equals(type.getName()) is redundant (should never happen).