class ShouldHaveExtension extends BasicErrorMessageFactory {

  public static ShouldHaveExtension shouldHaveExtension(File actual, String actualExtension, String expectedExtension) {<FILL_FUNCTION_BODY>}

  public static ShouldHaveExtension shouldHaveExtension(Path actual, String actualExtension, String expectedExtension) {
    Objects.requireNonNull(actualExtension);
    return new ShouldHaveExtension(actual, actualExtension, expectedExtension);
  }

  private ShouldHaveExtension(Object actual, String actualExtension, String expectedExtension) {
    super("%nExpecting%n  %s%nto have extension:%n  %s%nbut had:%n  %s.", actual, expectedExtension,
          actualExtension);
  }

  public static ShouldHaveExtension shouldHaveExtension(Path actual, String expectedExtension) {
    return new ShouldHaveExtension(actual, expectedExtension);
  }

  public static ShouldHaveExtension shouldHaveExtension(File actual, String expectedExtension) {
    return new ShouldHaveExtension(actual, expectedExtension);
  }

  private ShouldHaveExtension(Object actual, String expectedExtension) {
    super("%nExpecting%n  %s%nto have extension:%n  %s%nbut had no extension.", actual, expectedExtension);
  }

}

    return actualExtension == null
        ? new ShouldHaveExtension(actual, expectedExtension)
        : new ShouldHaveExtension(actual, actualExtension, expectedExtension);
  
<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