AnActionEvent (@NotNull AnAction action, @Nullable InputEvent event, @NotNull String place) { DataContext context = event == null ? DataManager.getInstance().getDataContext() : DataManager.getInstance().getDataContext(event.getComponent()); return createFromAnAction(action, event, place, context); }