docs: @Deprecated
      public boolean producesType(Type type) {
          return getParameterTypes().length == 0 && type instanceof Class<?>
                  && ((Class<?>) type).isAssignableFrom(method.getReturnType());
      }