docs: public static Class<?> getEncoderType(Class<? extends Encoder> clazz) {
          Method[] methods = clazz.getMethods();
          for (Method m : methods) {
              if ("encode".equals(m.getName()) && !m.isBridge()) {
                  return m.getParameterTypes()[0];
              }
          }
          throw JsrWebSocketMessages.MESSAGES.unknownEncoderType(clazz);
      }