void (@NotNull AnActionEvent e) { var project = e.getProject(); if (project != null) { var url = Messages.showInputDialog(project, "Where to?", "Browse Web", null, "https://www.jetbrains.com", null); if (url != null && !url.isBlank()) { HTMLEditorProvider.openEditor(project, "World Wild Web", HTMLEditorProvider.Request.url(url) .withQueryHandler((id, jsRequest, completion) -> { new Notification("System Messages", "JS request", "[" + id + "] " + jsRequest, NotificationType.INFORMATION).notify(project); return "true"; })); } } }