String (@NotNull Sdk sdk) { String versionString = sdk.getVersionString(); String homePath = sdk.getHomePath(); String path = homePath == null ? null : truncateLongPath(homePath); if (versionString == null && path == null) { return ""; } if (path == null) { return versionString; } if (versionString == null) { return ExternalSystemBundle.message("external.system.sdk.hint.path", path); } return ExternalSystemBundle.message("external.system.sdk.hint.path.and.version", versionString, path); }