private void assertIntersection(String expected, String... types) { Set<JetType> typesToIntersect = new LinkedHashSet<JetType>(); for (String type : types) { typesToIntersect.add(makeType(type)); } JetType result = TypeUtils.intersect(JetTypeChecker.DEFAULT, typesToIntersect); // assertNotNull("Intersection is null for " + typesToIntersect, result); assertEquals(makeType(expected), result); }