public boolean match(@NotNull String text) {
    if (simpleString) return matchesSimpleString(text);
    setMultilineIfApplicable(text);
    return pattern.matcher(text).matches();
  }
public boolean match(@NotNull String text)