void (final UsageInfo @NotNull [] usages) { CommandProcessor.getInstance().executeCommand(myProject, () -> { Collection<UsageInfo> usageInfos = new LinkedHashSet<>(Arrays.asList(usages)); doRefactoring(usageInfos); if (isGlobalUndoAction()) CommandProcessor.getInstance().markCurrentCommandAsGlobal(myProject); SuggestedRefactoringProvider.getInstance(myProject).reset(); }, getCommandName(), null, getUndoConfirmationPolicy()); }