I have a method that contains an IfStatement that I would like to remove but I would like to keep the ThenStatement content. I\'ve written this code but it throws an Illegal