QuoteThe scene where Nygma declares "I'm Batman" in his padded cell was likely inspired by the ending of The Flash (1990-1991) episodes 'The Trickster' and 'Trial of the Trickster'. The former episode ends with the Trickster ranting in a padded cell, while the latter episode ends with him declaring "I'm the Flash" as he's taken into custody. Both Trickster and Riddler seem to have undergone a form of psychological transference where they now believe they are their arch enemy.
You've got those backwards. The first Trickster episode has him claiming he's The Flash in the back of a police van while the second episode has him in a straight jacket claiming his padded cell is his "polyfoam fortress" with no claims at all being The Flash.