void () { final Sdk jdk = getTestProjectJdk(); if (jdk != null) { registerTestProjectJdk(jdk); } Module[] modules = ModuleManager.getInstance(myProject).getModules(); for (Module module : modules) { ModuleRootModificationUtil.setModuleSdk(module, jdk); } }