void (@NotNull final String frameworkName, @Nullable final Pair<Sdk, ExecutionException> sdkAndException) { final PyPackageManagementService.PyPackageInstallationErrorDescription errorDescription = getErrorDescription(sdkAndException, frameworkName); final Application app = ApplicationManager.getApplication(); app.invokeLater(() -> { PyPackagesNotificationPanel.showPackageInstallationError(PyBundle.message("python.new.project.install.failed.title", frameworkName), errorDescription); }); }