new Task.Backgroundable(myProject,"Finishing hotfix "+hotfixName,false){
@Override
public void run(@NotNull ProgressIndicator indicator) {
GitCommandResult result= myGitflow.finishHotfix(repo, hotfixName, tagMessage, errorLineHandler);
if (result.success()) {
String finishedHotfixMessage = String.format("The hotfix branch '%s%s' was merged into '%s' and '%s'", hotfixPrefix, hotfixName, developBranch, masterBranch);
NotifyUtil.notifySuccess(myProject, hotfixName, finishedHotfixMessage);
}
else {
NotifyUtil.notifyError(myProject, "Error", "Please have a look at the Version Control console for more details");