code: public static void check(Version version, String begin, String end,
                               String component) {
          E.checkState(VersionUtil.match(version, begin, end),
                       "The version %s of '%s' is not in [%s, %s)",
                       version, component, begin, end);
      }
docs: Check whether a component version is matched expected range,
  throw an exception if it's not matched.
  @param version   The version to be checked
  @param begin     The lower bound of the range
  @param end       The upper bound of the range
  @param component The owner component of version