String (@NotNull LongRangeSet fullTypeRange) { if (fullTypeRange.min() == myFrom) { if (fullTypeRange.max() == myTo) { return InspectionsBundle.message("long.range.set.presentation.any"); } return "<= " + LongRangeSet.formatNumber(myTo); } else if (fullTypeRange.max() == myTo) { return ">= " + LongRangeSet.formatNumber(myFrom); } if (myTo - myFrom == 1) { return InspectionsBundle.message("long.range.set.presentation.two.values", myFrom, myTo); } return InspectionsBundle.message("long.range.set.presentation.range", toString()); }