This won't work for more complicated generic parameters. For example: `Foo<A extends Foo<A, B>, B>`

I'm pretty sure if you see a `<` you can chop the rest of the type off completely.