class CommonErrors {

  public static NullPointerException arrayOfValuesToLookForIsNull() {
    return new NullPointerException(ErrorMessages.arrayOfValuesToLookForIsNull());
  }

  public static NullPointerException iterableToLookForIsNull() {
    return new NullPointerException(ErrorMessages.iterableToLookForIsNull());
  }

  public static NullPointerException iterableOfValuesToLookForIsNull() {
    return new NullPointerException(ErrorMessages.iterableValuesToLookForIsNull());
  }

  public static IllegalArgumentException arrayOfValuesToLookForIsEmpty() {
    return new IllegalArgumentException(ErrorMessages.arrayOfValuesToLookForIsEmpty());
  }

  public static IllegalArgumentException iterableOfValuesToLookForIsEmpty() {
    return new IllegalArgumentException(ErrorMessages.iterableValuesToLookForIsEmpty());
  }

  public static void wrongElementTypeForFlatExtracting(Object group) {<FILL_FUNCTION_BODY>}

  private CommonErrors() {}

}

    throw new IllegalArgumentException("Flat extracting expects extracted values to be Iterables or arrays but was a "
                                       + group.getClass().getSimpleName());
  
<no_super_class>