private static @NotNull String getStringGroup(@NotNull Matcher matcher, int group) {
    if (group > matcher.groupCount() + 1) {
      return "";
    }
    final String match = matcher.group(group);
    if (match == null) {
      return "";
    }

    return match.trim();
  }
private static @NotNull String getStringGroup(@NotNull Matcher matcher, int group)