We recently started watching a TV series, "Worst Witch," that looked like a huge HP ripoff... then learned it was based on a book series that predates HP by decades.
It takes a while for a new genre to establish itself so the law can distinguish between genre conventions and truly unique...