It is not possible to provide type arguments to statically imported methods (without including the class name, as in the first fragment). There is simply no such syntax supporting it.
See Section 15.12, Method Call Expressions in the Java Language Specification:
MethodInvocation: MethodName ( ArgumentListopt ) Primary . NonWildTypeArgumentsopt Identifier (ArgumentListopt) super . NonWildTypeArgumentsopt Identifier (ArgumentListopt) ClassName . super . NonWildTypeArgumentsopt Identifier (ArgumentListopt) TypeName . NonWildTypeArguments Identifier (ArgumentListopt)
The first option is the only one that does not include the previous point, and that it does not include the possibility of providing type arguments (as others do).
source share