PyPackageManagementService (Project project, Sdk sdk) { if (sdk instanceof Disposable) { LOG.assertTrue(!Disposer.isDisposed((Disposable)sdk), "Requesting a package service for an already disposed SDK " + sdk + " (" + sdk.getClass() + ")"); } return project.getService(PackageManagerHolder.class).bridgeForSdk(project, sdk); }