private static void checkNotPrimitive(Type type) {
    if (type instanceof Class<?> && ((Class<?>) type).isPrimitive()) {
      throw new IllegalArgumentException();
    }
  }
Returns the declaring class of {@code typeVariable}, or {@code null} if it was not declared by
a class.
core/src/main/java/feign/Types.java