private void registerConsoleEditorActions(@NotNull Editor editor) {
    ThreadingAssertions.assertEventDispatchThread();
    Shortcut[] shortcuts = KeymapUtil.getActiveKeymapShortcuts(IdeActions.ACTION_GOTO_DECLARATION).getShortcuts();
    CustomShortcutSet shortcutSet = new CustomShortcutSet(ArrayUtil.mergeArrays(shortcuts, CommonShortcuts.ENTER.getShortcuts()));
    new HyperlinkNavigationAction().registerCustomShortcutSet(shortcutSet, editor.getContentComponent());
    if (!myIsViewer) {
      registerActionHandler(editor, EOFAction.ACTION_ID);
    }
  }
private void registerConsoleEditorActions(@NotNull Editor editor)