void () { assertEquals("0", JvmPsiRangeSetUtil.getPresentationText(point(0), PsiTypes.intType())); assertEquals("unknown", JvmPsiRangeSetUtil.getPresentationText(empty(), PsiTypes.intType())); assertEquals("Integer.MAX_VALUE", JvmPsiRangeSetUtil.getPresentationText(point(Integer.MAX_VALUE), PsiTypes.intType())); assertEquals("any value", JvmPsiRangeSetUtil.getPresentationText(range(Integer.MIN_VALUE, Integer.MAX_VALUE), PsiTypes.intType())); assertEquals("in {Integer.MIN_VALUE..Integer.MAX_VALUE}", JvmPsiRangeSetUtil .getPresentationText(range(Integer.MIN_VALUE, Integer.MAX_VALUE), PsiTypes.longType())); assertEquals("<= 0", JvmPsiRangeSetUtil.getPresentationText(range(Integer.MIN_VALUE, 0), PsiTypes.intType())); assertEquals("<= Integer.MAX_VALUE-1", JvmPsiRangeSetUtil.getPresentationText(range(Integer.MIN_VALUE, Integer.MAX_VALUE - 1), PsiTypes.intType())); assertEquals(">= 0", JvmPsiRangeSetUtil.getPresentationText(range(0, Integer.MAX_VALUE), PsiTypes.intType())); assertEquals("in {0..Integer.MAX_VALUE-1}", JvmPsiRangeSetUtil.getPresentationText(range(0, Integer.MAX_VALUE - 1), PsiTypes.intType())); assertEquals("even", JvmPsiRangeSetUtil.getPresentationText(modRange(Integer.MIN_VALUE, Integer.MAX_VALUE, 2, 1), PsiTypes.intType())); assertEquals("divisible by 4", JvmPsiRangeSetUtil.getPresentationText(modRange(Integer.MIN_VALUE, Integer.MAX_VALUE, 4, 1), PsiTypes.intType())); assertEquals("odd", JvmPsiRangeSetUtil.getPresentationText(modRange(Integer.MIN_VALUE, Integer.MAX_VALUE, 2, 2), PsiTypes.intType())); assertEquals("<= -1; odd", JvmPsiRangeSetUtil.getPresentationText(modRange(Integer.MIN_VALUE, 0, 2, 2), PsiTypes.intType())); assertEquals(">= 1; odd", JvmPsiRangeSetUtil.getPresentationText(modRange(0, Integer.MAX_VALUE, 2, 2), PsiTypes.intType())); assertEquals("in {Integer.MIN_VALUE+1..Integer.MAX_VALUE}; odd", JvmPsiRangeSetUtil .getPresentationText(modRange(Integer.MIN_VALUE, Integer.MAX_VALUE, 2, 2), PsiTypes.longType())); assertEquals("!= 1", JvmPsiRangeSetUtil.getPresentationText(fromTypeStrict(PsiTypes.intType()).without(1), PsiTypes.intType())); assertEquals("in {Integer.MIN_VALUE..0, 2..Integer.MAX_VALUE}", JvmPsiRangeSetUtil .getPresentationText(fromTypeStrict(PsiTypes.intType()).without(1), PsiTypes.longType())); }