void (final Project project, final UndoableAction action, @NlsContexts.Command String name, String groupId) { CommandProcessor.getInstance().executeCommand(project, () -> { try { action.redo(); } catch (UnexpectedUndoException e) { throw new RuntimeException(e); } UndoManager.getInstance(project).undoableActionPerformed(action); }, name, groupId); }