void (@Nullable String expected, @Nullable PsiType actual) { if (expected == null){ assertNull(actual); return; } assertNotNull(actual); if (actual instanceof PsiIntersectionType){ TestCase.assertEquals(expected, genIntersectionTypeText((PsiIntersectionType)actual)); } else { TestCase.assertEquals(expected, actual.getCanonicalText()); } }