boolean (CppPlatform platform) { Object operatingSystem = callByReflection(platform, "getOperatingSystem"); if (operatingSystem == null) { return false; } Object isWindowsNullable = callByReflection(operatingSystem, "isWindows"); return Boolean.TRUE.equals(isWindowsNullable); }