is there a way to use generic types in graaljs?

it seems that in graaljs you cannot simply go Java.type("Foo<Bar>")

using Java.type("com.mojang.brigadier.Command<com.mojang.brigadier.ServerCommandSource>"), it says that that class does not exist (for reference this is running on a fabric 1.21 server, during the onInitalise call). this has led me to search code for how to do this.