In TreeScanner, almost all visitXYZ methods that scan a single enclosed node return the result of that scan. The exception is visitImport which always returns null.
This is inconsistent.
Also visitTypeParameter
This is inconsistent.
Also visitTypeParameter