public static <T> Supplier<T> of(final T instance) {
    return new Supplier<T>() {
      @Override
      public T get() {
        return instance;
      }
    };
  }
Returns a Supplier which always returns {@code instance}.

@param instance the instance that should always be provided.
fbcore/src/main/java/com/facebook/common/internal/Suppliers.java