ActionProcessor (int modifiers) { return new ActionProcessor() { @Override public @NotNull AnActionEvent createEvent(@NotNull InputEvent inputEvent, @NotNull DataContext context, @NotNull String place, @NotNull Presentation presentation, @NotNull ActionManager manager) { return new AnActionEvent(inputEvent, context, place, presentation, manager, modifiers); } }; }