intellij doesn't play nicely with some of Jenkins' generics.
Moving the unchecked statements to where the problem is. I don't like not knowing if something else is unused