private TypeResolver getTypeResolver() {
        TypeResolver typeResolver = scannerContext.peek(TypeResolver.class);
        if (typeResolver == null) {
            throw new IllegalStateException("Cannot find Java type resolver.");
        }
        return typeResolver;
    }
private TypeResolver getTypeResolver ( ) { TypeResolver typeResolver = scannerContext . peek ( TypeResolver . class ) ; if ( typeResolver == null ) { throw new IllegalStateException ( "Cannot find Java type resolver." ) ; } return typeResolver ; }
Return the type resolver.
<p>
Looks up an instance in the scanner context. If none can be found the default
resolver is used.
</p>

@return The type resolver.