String (@NotNull LongRangeSet fullTypeRange) { LongRangeSet diff = fullTypeRange.subtract(this); if (diff instanceof Point) { return "!= " + diff.min(); } if (diff instanceof Range && !diff.intersects(this)) { String min = diff.min() == fullTypeRange.min() ? "" : diff.min() == fullTypeRange.min() + 1 ? formatNumber(fullTypeRange.min()) : "<= " + formatNumber(diff.min() - 1); String max = diff.max() == fullTypeRange.max() ? "" : diff.max() == fullTypeRange.max() - 1 ? formatNumber(fullTypeRange.max()) : ">= " + formatNumber(diff.max() + 1); if (min.isEmpty()) return max; if (max.isEmpty()) return min; return InspectionsBundle.message("long.range.set.presentation.two.values", min, max); } if (myRanges.length == 4 && myRanges[0] == myRanges[1] && myRanges[2] == myRanges[3]) { return InspectionsBundle.message("long.range.set.presentation.two.values", myRanges[0], myRanges[2]); } return InspectionsBundle.message("long.range.set.presentation.range", toString()); }