void (@NotNull AnActionEvent e) { final Project project = e.getProject(); final VirtualFile file = e.getData(CommonDataKeys.VIRTUAL_FILE); final GenerateInstanceDocumentFromSchemaDialog dialog = new GenerateInstanceDocumentFromSchemaDialog(project, file); dialog.setOkAction(() -> doAction(project, dialog)); dialog.show(); }