void (@NotNull @NlsContexts.DialogTitle String title, @NotNull PackageManagementService.ErrorDescription description) { if (description instanceof PyPackageManagementService.PyPackageInstallationErrorDescription errorDescription) { final PyPackageInstallationErrorDialog dialog = new PyPackageInstallationErrorDialog(title, errorDescription); dialog.show(); } else { final PackagingErrorDialog dialog = new PackagingErrorDialog(title, description); dialog.show(); } }