code: public List<CommandInterceptor> getInterceptorsWithClass(Class clazz) {
        ArrayList<CommandInterceptor> list =
              new ArrayList<>(asyncInterceptorChain.getInterceptors().size());
        asyncInterceptorChain.getInterceptors().forEach(ci -> {
           if (clazz == ci.getClass()) {
              list.add((CommandInterceptor) ci);
           }
        });
        return list;
     }
docs: Returns all the interceptors that have the fully qualified name of their class equal with the supplied class
  name.