apollo-core/src/main/java/com/ctrip/framework/apollo/core/enums/ConfigFileFormat.java/ConfigFileFormat/isValidFormat
class ConfigFileFormat:  public static boolean isValidFormat(String value) {
    try {
      fromString(value);
      return true;
    } catch (IllegalArgumentException e) {
      return false;
    }
  }