List<Artifact> (final List<? extends Artifact> artifacts, final @NlsContexts.DialogTitle String title) { ChooseArtifactsDialog dialog = new ChooseArtifactsDialog(getProject(), artifacts, title, null); return dialog.showAndGet() ? dialog.getChosenElements() : Collections.emptyList(); }