void (@NotNull AnActionEvent e) { var file = myRefCardPath.getValue(); if (file != null) { BrowserUtil.browse(file); } else { var url = ExternalProductResourceUrls.getInstance().getKeyboardShortcutsPdfUrl(); if (url != null) { BrowserUtil.browse(url.toExternalForm()); } } }