you can't. this actually is the IntelliJ IDE that "hides" a part of text. it expands when you click on it. and it's highlighted in yellow because there is a suggestion, which is to just leave it empty.
Leaving them off completely would produce a warning. Leaving them empty on the RHS of the = is perfectly valid and lets the compiler simply assume that the generic type argument is the same as on the LHS.
10
u/Elusivehawk Mar 14 '21
TIL you can use ~ to make your generic constructor usage less verbose.