void (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project == null) return; ApplicationManager.getApplication().executeOnPooledThread(() -> { for (int i = 0; i < N_REPEATS; i++) { for (Module module : ModuleManager.getInstance(project).getModules()) { Sdk sdk = PythonSdkUtil.findPythonSdk(module); if (sdk == null) { LOG.info("Skipping module " + module + " as not having a Python SDK"); continue; } PythonSdkUpdater.scheduleUpdate(sdk, project); TimeoutUtil.sleep(TIMEOUT); } } }); }