void (@NotNull Project project, @NotNull List<? extends GitRepository> repositories, @NotNull String currentBranchName) { GitNewBranchOptions options = new GitNewBranchDialog(project, repositories, GitBundle.message("branches.rename.branch", currentBranchName), currentBranchName, false, false, false, false, GitBranchOperationType.RENAME).showAndGetOptions(); if (options != null) { GitBrancher brancher = GitBrancher.getInstance(project); brancher.renameBranch(currentBranchName, options.getName(), repositories); } }