void (@NotNull Object2FloatMap<? super String> weights) { Arrays.sort(bindings, (o1, o2) -> { String n1 = o1.getAccessor().getName(); String n2 = o2.getAccessor().getName(); float w1 = weights.getFloat(n1); float w2 = weights.getFloat(n2); return (int)(w1 - w2); }); }