OS (@Nullable String os) { if (os != null) { os = os.toLowerCase(Locale.ENGLISH); if (os.startsWith("windows")) return Windows; if (os.startsWith("mac")) return macOS; if (os.startsWith("linux")) return Linux; if (os.startsWith("freebsd")) return FreeBSD; } return Other; }