int (@NotNull T o) { final Comparable w1 = myWeigh; final Comparable w2 = ((NegatingComparable<?>)o).myWeigh; if (w1 == null && w2 == null) return 0; if (w1 == null) return 1; if (w2 == null) return -1; return -w1.compareTo(w2); }