void (@NotNull final AnActionEvent e) { final Project project = getProject(e); GlobalUndoableAction action = new GlobalUndoableAction() { @Override public void undo() throws UnexpectedUndoException { } @Override public void redo() throws UnexpectedUndoException { WorkingContextManager.getInstance(project).clearContext(); } }; UndoableCommand.execute(project, action, TaskBundle.message("task.clear.context.action.name"), "Context"); }