class ShouldHaveNoFields extends BasicErrorMessageFactory {

  public static ErrorMessageFactory shouldHaveNoPublicFields(Class<?> actual, Set<String> fields) {
    return new ShouldHaveNoFields(actual, fields, true, false);
  }

  public static ErrorMessageFactory shouldHaveNoDeclaredFields(Class<?> actual, Set<String> fields) {
    return new ShouldHaveNoFields(actual, fields, false, true);
  }

  private ShouldHaveNoFields(Class<?> actual, Set<String> fields, boolean publik, boolean declared) {
    super("%nExpecting%n" +
          "  %s%n" +
          "not to have any " + fieldDescription(publik, declared) + " fields but it has:%n" +
          "  %s", actual, fields);
  }

  private static String fieldDescription(boolean publik, boolean declared) {<FILL_FUNCTION_BODY>}
}

    if (publik) {
      return declared ? "public declared" : "public";
    }
    return declared ? "declared" : "";
  
<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