Sdk () { ProjectJdkTable jdkTable = ProjectJdkTable.getInstance(); Sdk result = jdkTable.createSdk("SDK", SdkTestCase.DependentTestSdkType.INSTANCE); jdkTable.addJdk(result); ModifiableRootModel model = ModuleRootManager.getInstance(getModule()).getModifiableModel(); model.setSdk(result); model.commit(); return result; }