`getReferenceType` should be used instead of `referenceType`, otherwise some method calls are double exception check wrapped.