void (@NotNull AnActionEvent e) { if (!ActionMacroManager.getInstance().isRecording()) { final ActionMacroManager manager = ActionMacroManager.getInstance(); manager.startRecording(e.getProject(), ActionMacroManager.NO_NAME_NAME); } else { ActionMacroManager.getInstance().stopRecording(e.getProject()); } }