code: public static boolean isValidVersion(String version) {
          if (version == null || version.isEmpty()) {
              return false;
          }
          return VERSION_PATTERN.matcher(version).matches();
      }
docs: Tries to parse the given String as a semantic version and returns whether the
  String is properly formatted according to the semantic version specification.
  
  <p>
  Note: this method does not throw an exception upon <code>null</code> input, but
  returns <code>false</code> instead.
  </p>
  
  @param version The String to check.
  @return Whether the given String is formatted as a semantic version.
  @since 0.5.0