@Contract(pure = true)
  public static @NotNull String escapePattern(@NotNull String text) {
    return replace(replace(text, "'", "''"), "{", "'{'");
  }
@Contract(pure = true)
  public static @NotNull String escapePattern(@NotNull String text)