code: @SuppressWarnings("unchecked") // The declaring class is T.
    @Override
    public TypeToken<T> getOwnerType() {
      return (TypeToken<T>) TypeToken.of(getDeclaringClass());
    }
docs: Overridden in TypeToken#method() and TypeToken#constructor()