static Double maxAllowingNull(Double a, Double b) { if (a == null) ret b; if (b == null) ret a; ret Math.max(a, b); }