In a static method a call of a statically imported method is spuriously flagged as "Unable to resolve..."
Specifically, this code:
the call to canonicalName is shown in red with the tool-tip diagnostic "Cannot resolve symbol 'canonicalName'".
Changing the code to this (making the method non-static):
removes the error indication.
The code flagged as erroneous does compile (naturally) and execute as expected.