Checks function and method duplicates.