void (@NotNull SingleCommitEditingData commitEditingData) { Project project = commitEditingData.getProject(); VcsShortCommitDetails commit = commitEditingData.getSelectedCommit(); LocalChangeList targetList; if (ChangeListManager.getInstance(project).areChangeListsEnabled()) { ChangeListChooser chooser = new ChangeListChooser(project, GitBundle.message("git.undo.action.select.target.changelist.title")); chooser.setSuggestedName(commit.getSubject()); if (!chooser.showAndGet()) return; targetList = chooser.getSelectedList(); } else { targetList = null; } resetInBackground(commitEditingData.getLogData(), commitEditingData.getRepository(), commit, targetList); }