private static @Nullable BranchConfig parseBranchSection(@NotNull String sectionName,
                                                           @NotNull Profile.Section section) {
    Matcher matcher = BRANCH_INFO_SECTION.matcher(sectionName);
    if (matcher.matches()) {
      String remote = section.get("remote");
      String merge = section.get("merge");
      String rebase = section.get("rebase");
      return new BranchConfig(matcher.group(1), remote, merge, rebase);
    }
    if (BRANCH_COMMON_PARAMS_SECTION.matcher(sectionName).matches()) {
      LOG.debug(String.format("Common branch option(s) defined .git/config. sectionName: %s%n section: %s", sectionName, section));
      return null;
    }
    return null;
  }
private static @Nullable BranchConfig parseBranchSection(@NotNull String sectionName,
                                                           @NotNull Profile.Section section)