private @Nullable Sdk lookupModuleSdk(@NotNull IdeaModule ideaModule, @Nullable ExternalSourceSet sourceSet) {
    String sdkName = ideaModule.getJdkName();
    if (sdkName != null) {
      return resolveSdkByName(sdkName);
    }
    File javaToolchainHome = ObjectUtils.doIfNotNull(sourceSet, it -> it.getJavaToolchainHome());
    if (javaToolchainHome != null) {
      return lookupJdkByPath(NioPathUtil.toCanonicalPath(javaToolchainHome.toPath()));
    }
    return null;
  }
private @Nullable Sdk lookupModuleSdk(@NotNull IdeaModule ideaModule, @Nullable ExternalSourceSet sourceSet)