public static void ensureAndLog(@NotNull Class<?> loggingClass, boolean statement) {
    if (!statement) {
      Logger.getInstance(loggingClass).error(new IllegalPostconditionException(POSTCONDITION_IS_NOT_SATISFIED));
    }
  }
public static void ensureAndLog(@NotNull Class<?> loggingClass, boolean statement)