code: @SuppressWarnings("unchecked")
      public static <T> T[] newArrayInstance(Class<T> baseClass, int length) {
          return (T[]) Array.newInstance(baseClass, length);
      }
docs: Creates a new array instance in a type safe way.
  @param baseClass The type of the elements of the array
  @param length The length of the new array
  @param <T> The base type of the new array
  @return The new array