String (@Nullable DistributionType value) { if (value != null) { return switch (value) { case BUNDLED -> GradleBundle.message("gradle.project.settings.distribution.bundled"); case DEFAULT_WRAPPED -> GradleBundle.message("gradle.project.settings.distribution.wrapper"); case WRAPPED -> GradleBundle.message("gradle.project.settings.distribution.wrapper.task"); case LOCAL -> GradleBundle.message("gradle.project.settings.distribution.local"); }; } LOG.error("Unexpected: " + value); return GradleBundle.message("gradle.settings.text.unexpected", value); }