class AnalyticsUtil {

    @VisibleForTesting
    static GradleBuildProject.GradlePlugin otherPluginToProto(@NonNull String pluginClassName) {
        String enumName = getOtherPluginEnumName(pluginClassName);

        try {
            return GradleBuildProject.GradlePlugin.valueOf(enumName);
        } catch (IllegalArgumentException e) {
            Logging.getLogger(AnalyticsUtil.class)
                    .info(
                            "Analytics other plugin to proto: Unknown plugin type {} expected enum {}",
                            pluginClassName,
                            enumName);
            return GradleBuildProject.GradlePlugin.UNKNOWN_GRADLE_PLUGIN;
        }
    }

}