void (@NotNull final VirtualFile file, @NotNull FileEditorManager source) { for (FileEditor fileEditor : source.getAllEditors(file)) { if (fileEditor instanceof TextEditor) { ExecuteJShellAction.getSharedInstance().registerCustomShortcutSet(CommonShortcuts.CTRL_ENTER, fileEditor.getComponent()); } } }