He stole the song! Its identical to Want a New Drug by Huey Lewis!
He sure did.
Another thief - “All I Wanna Do” from Cheryl Crow
Ripping off Gerry Rafferty’s riff in Stealers Wheel “Stuck in the Middle With You”.
Prince too a songwriting credit on Stevie Nick's Stand Back. (But Sting never demanded a credit for that song, but he did get a co-credit for Money for Nothing by Die Straits)
Prince had his record company call Journey, because he thought Purple RainFaithfully. Cain and Schon, the songwriters declined to ask for a credit. Apparently Prince was a big fan of Neal Schon.
Journey said they thought One Direction ripped off a song of theirs, but they didn't seek remedy.
Different artists have different attitudes.