void (@NotNull AnActionEvent e) { final Module module = e.getData(PlatformCoreDataKeys.MODULE); e.getPresentation().setEnabled(module != null && PyPackageUtil.hasSetupPy(module) && PythonSdkUtil.findPythonSdk(module) != null); }