Sdk (@NotNull Project project, @NotNull Collection<? extends Module> modules) { Sdk projectJdk = ProjectRootManager.getInstance(project).getProjectSdk(); if (projectJdk != null && projectJdk.getSdkType() instanceof JavaSdkType) { return projectJdk; } return chooseJdk(modules); }