code: public static <T> Supplier<T> identitySupplier(final T toSupply) {
      return new Supplier<T>() {
        @Override
        public T get(VisitorState state) {
          return toSupply;
        }
      };
    }
docs: Supplies what was given. Useful for adapting to methods that require a supplier.
  
  @param toSupply the item to supply