class ShouldBeInstanceOfAny extends BasicErrorMessageFactory {

  /**
   * Creates a new <code>{@link ShouldBeInstanceOfAny}</code>.
   *
   * @param actual the actual value in the failed assertion.
   * @param types contains the type or types {@code actual} is expected to belong to.
   * @return the created {@code ErrorMessageFactory}.
   */
  public static ErrorMessageFactory shouldBeInstanceOfAny(Object actual, Class<?>[] types) {<FILL_FUNCTION_BODY>}

  private ShouldBeInstanceOfAny(Object actual, Class<?>[] types) {
    super("%nExpecting actual:%n  %s%nto be an instance of any of:%n  %s%nbut was instance of:%n  %s", actual, types,
          actual.getClass());
  }

  private ShouldBeInstanceOfAny(Throwable throwable, Class<?>[] types) {
    super("%nExpecting actual throwable to be an instance of any of the following types:%n  %s%nbut was:%n  %s", types,
          throwable);
  }
}

    return actual instanceof Throwable ? new ShouldBeInstanceOfAny((Throwable) actual, types)
        : new ShouldBeInstanceOfAny(actual, types);
  
<methods>public transient void <init>(java.lang.String, java.lang.Object[]) ,public java.lang.String create(org.assertj.core.description.Description, org.assertj.core.presentation.Representation) ,public java.lang.String create(org.assertj.core.description.Description) ,public java.lang.String create() ,public boolean equals(java.lang.Object) ,public int hashCode() ,public java.lang.String toString() <variables>protected final non-sealed java.lang.Object[] arguments,protected final non-sealed java.lang.String format,org.assertj.core.error.MessageFormatter formatter