void () { PsiJavaCodeReferenceElement ref = JavaPsiFacade.getElementFactory(myProject).createReferenceFromText("java.util.List<String>", null); JavaResolveResult result = ref.advancedResolve(false); assertNotNull(result.getElement()); assertSize(1, result.getSubstitutor().getSubstitutionMap().keySet()); }