public static InterceptorType getInterceptorTypeFor(Class<?> type) {
   for (InterceptorType interceptorType : InterceptorType.values()) {
     if (type == interceptorType.clazz) {
       return interceptorType;
     }
   }
   return null;
 }