void (@NotNull AnActionEvent event) { final Project project = event.getData(CommonDataKeys.PROJECT); if (project == null) return; FileDocumentManager.getInstance().saveAllDocuments(); final List<VirtualFile> files = getFilesToPackage(event, project); Artifact[] allArtifacts = ArtifactManager.getInstance(project).getArtifacts(); PackageFileWorker.startPackagingFiles(project, files, allArtifacts, () -> setStatusText(project, files)); }