Fix a dupicate method declaration in a file.