class ShouldHaveSuperclass extends BasicErrorMessageFactory {

  private static final String SHOULD_HAVE_SUPERCLASS = new StringJoiner("%n", "%n", "").add("Expecting")
                                                                                       .add("  %s")
                                                                                       .add("to have superclass:")
                                                                                       .add("  %s")
                                                                                       .toString();

  private static final String BUT_HAD_NONE = new StringJoiner("%n", "%n", "").add("but had none.")
                                                                             .toString();

  private static final String BUT_HAD = new StringJoiner("%n", "%n", "").add("but had:")
                                                                        .add("  %s")
                                                                        .toString();

  /**
   * Creates a new <code>{@link ShouldHaveSuperclass}</code>.
   *
   * @param actual     the actual value in the failed assertion.
   * @param superclass expected superclass for this class.
   * @return the created {@code ErrorMessageFactory}.
   */
  public static ErrorMessageFactory shouldHaveSuperclass(Class<?> actual, Class<?> superclass) {<FILL_FUNCTION_BODY>}

  private ShouldHaveSuperclass(Class<?> actual, Class<?> expectedSuperclass) {
    super(SHOULD_HAVE_SUPERCLASS + BUT_HAD_NONE, actual, expectedSuperclass);
  }

  private ShouldHaveSuperclass(Class<?> actual, Class<?> expectedSuperclass, Class<?> actualSuperclass) {
    super(SHOULD_HAVE_SUPERCLASS + BUT_HAD, actual, expectedSuperclass, actualSuperclass);
  }

}

    Class<?> actualSuperclass = actual.getSuperclass();
    return (actualSuperclass == null)
        ? new ShouldHaveSuperclass(actual, superclass)
        : new ShouldHaveSuperclass(actual, superclass, actualSuperclass);
  
<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