List<ExecutionException> (@NotNull ProgressIndicator indicator) { final PyPackageManager manager = PyPackageManagers.getInstance().forSdk(mySdk); indicator.setIndeterminate(true); try { manager.uninstall(myPackages); return Collections.emptyList(); } catch (ExecutionException e) { return Collections.singletonList(e); } finally { manager.refresh(); } }