public @Nullable Pattern createPattern(@NotNull String rule, @NotNull Syntax syntax, boolean acceptChildren) {
    String regex = getRegex(rule, syntax, acceptChildren);
    return getOrCreatePattern(regex);
  }
public @Nullable Pattern createPattern(@NotNull String rule, @NotNull Syntax syntax, boolean acceptChildren)