int (@NotNull JavaVersion o) { int diff = feature - o.feature; if (diff != 0) return diff; diff = minor - o.minor; if (diff != 0) return diff; diff = update - o.update; if (diff != 0) return diff; diff = build - o.build; if (diff != 0) return diff; return (ea ? 0 : 1) - (o.ea ? 0 : 1); }