void () { overrideJreHiDPIEnabled(true); BiFunction<Integer, Integer, Integer> bit2scale = (mask, bit) -> ((mask >> bit) & 0x1) + 1; for (int mask = 0; mask < 7; mask++) { int iconScale = bit2scale.apply(mask, 2); int usrScale = bit2scale.apply(mask, 1); int sysScale = bit2scale.apply(mask, 0); assert iconScale * usrScale * sysScale <= 4; test(ScaleContext.Companion.of(new Scale[]{SYS_SCALE.of(sysScale), USR_SCALE.of(usrScale), OBJ_SCALE.of(iconScale)})); } }