void (@NotNull AnActionEvent e) { Module module = e.getData(PlatformCoreDataKeys.MODULE); final Sdk sdk = PythonSdkUtil.findPythonSdk(module); if (module != null && sdk != null) { new PyManagePackagesDialog(module.getProject(), sdk).show(); } }