@Contract("_, !null->!null")
  public static Pattern compileSafe(String pattern, Pattern def) {
    try {
      return Pattern.compile(pattern);
    }
    catch (Exception e) {
      return def;
    }
  }
@Contract("_, !null->!null")
  public static Pattern compileSafe(String pattern, Pattern def)