public static void checkAndLog(@NotNull Class<?> loggingClass, @NotNull String message, @NotNull BooleanSupplier statementSupplier) {
    if (!statementSupplier.getAsBoolean()) {
      Logger.getInstance(loggingClass).error(new IllegalStateException(message));
    }
  }
public static void checkAndLog(@NotNull Class<?> loggingClass, @NotNull String message, @NotNull BooleanSupplier statementSupplier)