void (@Nullable Sdk sdk) { final PyPackageManagers packageManagers = PyPackageManagers.getInstance(); myPackagesPanel.updatePackages(sdk != null ? packageManagers.getManagementService(myProject, sdk) : null); myPackagesPanel.updateNotifications(sdk); }