Sdk (final Sdk sdk, final String sdkName) { final ProjectSdksModel model = ProjectStructureConfigurable.getInstance(myProject).getJdkConfig().getJdksTreeModel(); return sdkName != null ? model.findSdk(sdkName) : sdk; }