void (@NotNull Sdk sdk, @NotNull ProgressIndicator indicator) { try { LOG.info("Performing background scan of packages for SDK " + getSdkPresentableName(sdk)); indicator.setIndeterminate(true); indicator.setText(PyBundle.message("python.sdk.scanning.installed.packages")); indicator.setText2(""); PyPackageManager.getInstance(sdk).refreshAndGetPackages(true); PythonPackageManager manager = PythonPackageManager.Companion.forSdk(myProject, mySdk); PythonPackageManagerExt.launchReload(manager); } catch (ExecutionException e) { if (LOG.isDebugEnabled()) { e.initCause(myRequestData.myTraceback); LOG.debug(e); } else { LOG.warn(e.getMessage()); } } }