public @NotNull String getRegex(@NotNull String rule, @NotNull Syntax syntax, boolean acceptChildren) {
    return syntax.equals(Syntax.GLOB) ? createRegex(rule, acceptChildren) : rule;
  }
public @NotNull String getRegex(@NotNull String rule, @NotNull Syntax syntax, boolean acceptChildren)