docs: public T getByInterfaces(Class<?> clazz) {
          T object = null;
          Class<?>[] interfaces = clazz.getInterfaces();
          for (Class<?> interfaceClass : interfaces) {
              object = map.get(interfaceClass);
              if(object != null) {
                  break;
              }
          }
          return object;
      }