code: public static boolean isValidVersionRange(String versionRange) {
          try {
              ExpressionParser.newInstance().parse(versionRange);
              return true;
          } catch (com.github.zafarkhaja.semver.ParseException ignore) {
              // Ignore.
          }
          return false;
      }
docs: Tells whether or not the given version range is valid.
  
  @param versionRange the version range to test.
  @return {@code true} if the version range is valid, {@code false} otherwise.
  @since 2.7.0
  @see #matches(String)