void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { DataManager.getInstance() .getDataContextFromFocusAsync() .onSuccess(context -> { final AnActionEvent event = new AnActionEvent(null, context, "", new Presentation(), ActionManager.getInstance(), 0); new CreatePackageInfoAction().actionPerformed(event); }); }