The scene in the celler is inspired by the hallway scene in Rogue One: A Star Wars Story, where Darth Vader slaughters the rebels one by one.
The last scene, when Tommy brags about himself and what he has done for this world, was based on Anakin Skywalker in the end of Revenge of the Sith, when he says "I have brought peace, freedom, justice and security to my new empire!" and Obi-Wan questions his ideologies.