void () { PsiType type = JavaPsiFacade.getElementFactory(getProject()).createTypeFromText("some .unknown. Foo<? extends String>", null); assertEquals("some.unknown.Foo<? extends String>", type.getCanonicalText()); }