void (@NotNull AnActionEvent e) { ToolWindow toolWindow = e.getDataContext().getData(PlatformDataKeys.TOOL_WINDOW); if (toolWindow == null) { return; } Content content = getContextContent(e, toolWindow); actionPerformed(e, toolWindow, content); }