void (@NotNull InputEvent inputEvent, @NotNull Runnable runnable) { String place = inputEvent instanceof KeyEvent ? ActionPlaces.KEYBOARD_SHORTCUT : inputEvent instanceof MouseEvent ? ActionPlaces.MOUSE_SHORTCUT : ActionPlaces.UNKNOWN; AnActionEvent event = AnActionEvent.createFromInputEvent( inputEvent, place, InputEventDummyAction.INSTANCE.getTemplatePresentation().clone(), DataManager.getInstance().getDataContext(Objects.requireNonNull(inputEvent.getComponent()))); performDumbAwareWithCallbacks(InputEventDummyAction.INSTANCE, event, runnable); }