void (@NotNull List<? extends EditorEx> editors, @NotNull JComponent component) { DiffUtil.recursiveRegisterShortcutSet(new DefaultActionGroup(myEditorPopupActions), component, null); EditorPopupHandler handler = new ContextMenuPopupHandler.Simple( myEditorPopupActions.isEmpty() ? null : new DefaultActionGroup(myEditorPopupActions) ); for (EditorEx editor : editors) { editor.installPopupHandler(handler); } }