@@ -0,0 +1,306 @@
+package com.punchthrough.bean.sdk.internal.utility;%0A%0Apublic class Misc %7B%0A%0A    public static int clamp(int n, int min, int max) %7B%0A        if (n %3C min) return min;%0A        if (n %3E max) return max;%0A        return n;%0A    %7D%0A%0A    public static int clampToUInt8(int n) %7B%0A        return clamp(n, 0, 255);%0A    %7D%0A%0A%7D%0A

Add Misc helper class with clamp static method