public @NotNull String cleanUpBranchName(@NotNull String branchName) {
    return cleanUpBranchNameOnTyping(branchName).replaceAll(ENDPATTERNS.pattern(), "");
  }
public @NotNull String cleanUpBranchName(@NotNull String branchName)