void () { myFreeze = true; final Sdk projectJdk = myJdksModel.getProjectSdk(); if (myCbProjectJdk != null) { myCbProjectJdk.reloadModel(); final String sdkName = projectJdk == null ? ProjectRootManager.getInstance(myProject).getProjectSdkName() : projectJdk.getName(); if (sdkName != null) { final Sdk jdk = myJdksModel.findSdk(sdkName); if (jdk != null) { myCbProjectJdk.setSelectedJdk(jdk); } else { myCbProjectJdk.setInvalidJdk(sdkName); clearCaches(); } } else { myCbProjectJdk.setSelectedJdk(null); } } else { LOG.error("'createComponent' wasn't called before 'reset' for " + toString()); } myFreeze = false; }