code: private static Object jdk8(final Class<?> type, final Object object) {
          try {
              // a bit faster than resolving it each time
              if (jdk8OptionalFactory == null) {
                  lookupOptionalFactoryMethod(type);
              }
              return jdk8OptionalFactory.invoke(null, object);
          } catch (Exception e) {
              throw new IllegalStateException("Failed to instantiate jdk Optional", e);
          }
      }
docs: Only this will cause optional class loading and fail for earlier jdk.
  
  @param object object for conversion
  @return optional instance