code: private static List<Class<? extends Exception>> wrapExceptions(final Class<? extends Exception>... list) {
          return list.length == 0 ? null : Arrays.asList(list);
      }
docs: Avoid creation of empty list.
  
  @param list array of exceptions
  @return converted list or null if array os empty