return mock != null && isMockitoMock(mock);
}
private <T> MethodInterceptorFilter getInterceptor(T mock) {
Factory factory = (Factory) mock;
Callback callback = factory.getCallback(0);
if (callback instanceof MethodInterceptorFilter) {
return (MethodInterceptorFilter) callback;
}
return null;
}