code: public static <T, S extends MutableStack<T>> SynchronizedStack<T> of(S stack)
      {
          return new SynchronizedStack<T>(stack);
      }
docs: This method will take a MutableStack and wrap it directly in a SynchronizedStack.