code: public static <T> List<T> getReversed(Collection<T> collection) {
          List<T> reversedList = new ArrayList<>(collection);
          Collections.reverse(reversedList);
          return reversedList;
      }
docs: Gets reversed.
  
  @param <T>        the type parameter
  @param collection the collection
  @return the reversed