class Matchers {

  public static void checkLowerSnakeCase(String input, String resource)
      throws IllegalArgumentException {
    if (!LOWER_SNAKE_CASE_REGEX.matcher(input).matches()) {
      throw new IllegalArgumentException(
          String.format(
              ERROR_MESSAGE_TEMPLATE,
              resource,
              input,
              "argument must be in lower snake case, and cannot include any special characters."));
    }
  }

}