getTargetOrNull

inline fun <T> JoinPoint.getTargetOrNull(): T?(source)

Returns JoinPoint.target cast to T, or null if the target is null or cannot be cast to T.