void () { HashMap<LongRangeSet, String> map = new HashMap<>(); map.put(empty(), "empty"); map.put(point(10), "10"); map.put(range(10, 10), "10-10"); map.put(range(10, 11), "10-11"); map.put(range(10, 12), "10-12"); LongRangeSet longNotChar = fromTypeStrict(PsiTypes.longType()).subtract(fromTypeStrict(PsiTypes.charType())); map.put(longNotChar, "longNotChar"); assertEquals("empty", map.get(empty())); assertEquals("10-10", map.get(point(10))); assertEquals("10-11", map.get(range(10, 11))); assertEquals("10-12", map.get(range(10, 12))); assertNull(map.get(range(11, 11))); assertEquals("longNotChar", map.get(fromTypeStrict(PsiTypes.longType()).subtract(fromTypeStrict(PsiTypes.charType())))); }