Check if there is duplicate method names