U.S. district court judge Gail Standish quoted Taylor Swift lyrics while dismissing the plagiarism lawsuit filed against the singer.

The lawsuit filed by R&B singer Jesse Graham for $42 million against Swift over her 2014 hit single "Shake It Off" has now been terminated, according to NME.

Graham argued the singer took lyrics for the chorus from his 2013 track "Haters Gone Hate." He challenged the pop artist, who said she wrote the lyrics on her own.

Lyrics from Graham's track include, "Haters gonna hate / Players gonna play / Watch out for them fakers / They'll fake you every day." Swift's song contains the lyrics, "'Cause the players gonna play, play, play, play, play / And the haters gonna hate, hate, hate, hate, hate."

When Standish dismissed Graham's claims against Swift, she quoted lyrics from many of her songs.

"At present, the Court is not saying that Braham [Graham's true surname] can never, ever, ever get his case back in court," Standish said. "But, for now, we have got problems, and the Court is not sure Braham can solve them."

"As currently drafted, the Complaint has a blank space -- one that requires Braham to do more than write his name. And, upon consideration of the Court's explanation in Part II, Braham may discover that mere pleading BandAids will not fix the bullet holes in his case. At least for the moment, Defendants have shaken off this lawsuit," she added.

If Graham can fix the deficiencies of his previous lawsuit, he will be able to file a new complaint, the court ruled.

Swift released her fifth studio album, "1989," on Oct. 27, 2014. The album, which topped the U.S. Billboard 200 chart, produced the aforementioned single "Shake It Off," as well as "Blank Space," "Style," "Bad Blood" and "Wildest Dreams." The album was the follow-up to her 2012 album, "Red."