Sdk () { Project defaultProject = ProjectManagerEx.getInstanceEx().getDefaultProject(); Sdk sdk = ProjectRootManagerEx.getInstanceEx(defaultProject).getProjectSdk(); if (sdk == null) { sdk = AddModuleWizard.getMostRecentSuitableSdk(myContext); } return sdk; }