docs: @SafeVarargs
      @SuppressWarnings("varargs")
      public static <T> List<T> list(T... a) {
          ArrayList<T> result = new ArrayList<T>();
          if (a == null) {
              result.add(null);
              return result;
          }
          for (T elem : a) {
              result.add(elem);
          }
          return result;
      }