public static @NotNull Pattern fromMask(@NotNull String mask, int flags) {
    try {
      return Pattern.compile(convertToRegex(mask), flags);
    }
    catch (PatternSyntaxException e) {
      LOG.error(mask, e);
      return NOTHING;
    }
  }
public static @NotNull Pattern fromMask(@NotNull String mask, int flags)