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