code: @SuppressWarnings({"ConstantConditions", "squid:S2583"})
      private static CharSequence validate(CharSequence id) {
          if (id == null) {
              throw new IllegalArgumentException("Exception ID can't be null");
          }
          if (isInvalid(id)) {
              throw new IllegalArgumentException(
                  "Invalid ID given as an Exception ID: " + id
              );
          }
          return id;
      }
docs: /*
  Suppress warnings id here for null check. Users can pass null event if it's
  forbidden.